[PATCH] slab: remove SLAB_KERNEL
SLAB_KERNEL is an alias of GFP_KERNEL. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
54e6ecb239
commit
e94b176609
@@ -143,7 +143,7 @@ static inline struct nfs_direct_req *nfs_direct_req_alloc(void)
|
||||
{
|
||||
struct nfs_direct_req *dreq;
|
||||
|
||||
dreq = kmem_cache_alloc(nfs_direct_cachep, SLAB_KERNEL);
|
||||
dreq = kmem_cache_alloc(nfs_direct_cachep, GFP_KERNEL);
|
||||
if (!dreq)
|
||||
return NULL;
|
||||
|
||||
|
@@ -1080,7 +1080,7 @@ void nfs4_clear_inode(struct inode *inode)
|
||||
struct inode *nfs_alloc_inode(struct super_block *sb)
|
||||
{
|
||||
struct nfs_inode *nfsi;
|
||||
nfsi = (struct nfs_inode *)kmem_cache_alloc(nfs_inode_cachep, SLAB_KERNEL);
|
||||
nfsi = (struct nfs_inode *)kmem_cache_alloc(nfs_inode_cachep, GFP_KERNEL);
|
||||
if (!nfsi)
|
||||
return NULL;
|
||||
nfsi->flags = 0UL;
|
||||
|
@@ -26,7 +26,7 @@ static inline struct nfs_page *
|
||||
nfs_page_alloc(void)
|
||||
{
|
||||
struct nfs_page *p;
|
||||
p = kmem_cache_alloc(nfs_page_cachep, SLAB_KERNEL);
|
||||
p = kmem_cache_alloc(nfs_page_cachep, GFP_KERNEL);
|
||||
if (p) {
|
||||
memset(p, 0, sizeof(*p));
|
||||
INIT_LIST_HEAD(&p->wb_list);
|
||||
|
Reference in New Issue
Block a user