summaryrefslogtreecommitdiff
path: root/fs/orangefs/orangefs-mod.c
diff options
context:
space:
mode:
authorMike Marshall <hubcap@omnibond.com>2016-02-04 13:48:16 -0500
committerMike Marshall <hubcap@omnibond.com>2016-02-04 13:48:16 -0500
commit2d4cae0d175acae2ea2efbc17b52b71d4ffd886d (patch)
tree754ff8b18dc325bf2e9c9b05a5e0d22d8683d640 /fs/orangefs/orangefs-mod.c
parent5090c9670de03511834bc894cfc9737e3d61a414 (diff)
downloadlinux-next-2d4cae0d175acae2ea2efbc17b52b71d4ffd886d.tar.gz
Orangefs: clean up slab allocation.
A couple of caches were no longer needed: - iov_iter improvements to orangefs_devreq_write_iter eliminated the need for the dev_req_cache. - removal (months ago) of the old AIO code eliminated the need for the kiocb_cache. Also, deobfuscation of use of GFP_KERNEL when calling kmem_cache_(z)alloc for remaining caches. Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-mod.c')
-rw-r--r--fs/orangefs/orangefs-mod.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/fs/orangefs/orangefs-mod.c b/fs/orangefs/orangefs-mod.c
index e07874e26372..7639ab2df711 100644
--- a/fs/orangefs/orangefs-mod.c
+++ b/fs/orangefs/orangefs-mod.c
@@ -140,24 +140,16 @@ static int __init orangefs_init(void)
if (ret < 0)
goto err;
- ret = dev_req_cache_initialize();
- if (ret < 0)
- goto cleanup_op;
-
ret = orangefs_inode_cache_initialize();
if (ret < 0)
- goto cleanup_req;
-
- ret = kiocb_cache_initialize();
- if (ret < 0)
- goto cleanup_inode;
+ goto cleanup_op;
/* Initialize the orangefsdev subsystem. */
ret = orangefs_dev_init();
if (ret < 0) {
gossip_err("orangefs: could not initialize device subsystem %d!\n",
ret);
- goto cleanup_kiocb;
+ goto cleanup_inode;
}
htable_ops_in_progress =
@@ -214,15 +206,9 @@ cleanup_progress_table:
cleanup_device:
orangefs_dev_cleanup();
-cleanup_kiocb:
- kiocb_cache_finalize();
-
cleanup_inode:
orangefs_inode_cache_finalize();
-cleanup_req:
- dev_req_cache_finalize();
-
cleanup_op:
op_cache_finalize();
@@ -247,9 +233,7 @@ static void __exit orangefs_exit(void)
for (i = 0; i < hash_table_size; i++)
BUG_ON(!list_empty(&htable_ops_in_progress[i]));
- kiocb_cache_finalize();
orangefs_inode_cache_finalize();
- dev_req_cache_finalize();
op_cache_finalize();
kfree(htable_ops_in_progress);