diff options
author | Mike Marshall <hubcap@omnibond.com> | 2016-02-04 13:48:16 -0500 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-02-04 13:48:16 -0500 |
commit | 2d4cae0d175acae2ea2efbc17b52b71d4ffd886d (patch) | |
tree | 754ff8b18dc325bf2e9c9b05a5e0d22d8683d640 /fs/orangefs/super.c | |
parent | 5090c9670de03511834bc894cfc9737e3d61a414 (diff) | |
download | linux-stable-2d4cae0d175acae2ea2efbc17b52b71d4ffd886d.tar.gz linux-stable-2d4cae0d175acae2ea2efbc17b52b71d4ffd886d.tar.bz2 linux-stable-2d4cae0d175acae2ea2efbc17b52b71d4ffd886d.zip |
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/super.c')
-rw-r--r-- | fs/orangefs/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index a32981239ea6..93cc352be360 100644 --- a/fs/orangefs/super.c +++ b/fs/orangefs/super.c @@ -92,8 +92,7 @@ static struct inode *orangefs_alloc_inode(struct super_block *sb) { struct orangefs_inode_s *orangefs_inode; - orangefs_inode = kmem_cache_alloc(orangefs_inode_cache, - ORANGEFS_CACHE_ALLOC_FLAGS); + orangefs_inode = kmem_cache_alloc(orangefs_inode_cache, GFP_KERNEL); if (orangefs_inode == NULL) { gossip_err("Failed to allocate orangefs_inode\n"); return NULL; |