Remove GFP_NFS
Subsystems (3)
PATCH 1/1 Remove GFP_NFS
GFP_NFS means the same as GFP_KERNEL these days and it's only used by ncpfs. Looks like copy & paste from NFS code which has now changed to using the page cache. So I think we should eliminate GFP_NFS.
fs/ncpfs/symlink.c +2 -2
@@ -49,7 +49,7 @@ static int ncp_symlink_readpage(struct fchar *buf =kmap (page); error = -ENOMEM ; - rawlink=(char *)kmalloc (NCP_MAX_SYMLINK_SIZE ,GFP_NFS ); + rawlink=(char *)kmalloc (NCP_MAX_SYMLINK_SIZE ,GFP_KERNEL );if (!rawlink) goto fail;
@@ -126,7 +126,7 @@ int ncp_symlink(struct inode *dir, struc/* EPERM is returned by VFS if symlink procedure does not exist */ return -EPERM ; - rawlink=(char *)kmalloc (NCP_MAX_SYMLINK_SIZE ,GFP_NFS ); + rawlink=(char *)kmalloc (NCP_MAX_SYMLINK_SIZE ,GFP_KERNEL );if (!rawlink)return -ENOMEM ;
include/linux/gfp.h +0 -1
@@ -25,7 +25,6 @@#define GFP_USER ( __GFP_WAIT | __GFP_IO | __GFP_HIGHIO | __GFP_FS)#define GFP_HIGHUSER ( __GFP_WAIT | __GFP_IO | __GFP_HIGHIO | __GFP_FS | __GFP_HIGHMEM)#define GFP_KERNEL ( __GFP_WAIT | __GFP_IO | __GFP_HIGHIO | __GFP_FS) -#define GFP_NFS ( __GFP_WAIT | __GFP_IO | __GFP_HIGHIO | __GFP_FS)#define GFP_KSWAPD ( __GFP_WAIT | __GFP_IO | __GFP_HIGHIO | __GFP_FS)/* Flag - indicates that the buffer will be suitable for DMA. Ignored on some
include/linux/slab.h +0 -1
@@ -21,7 +21,6 @@ typedef struct kmem_cache_s kmem_cache_t#define SLAB_ATOMIC GFP_ATOMIC#define SLAB_USER GFP_USER#define SLAB_KERNEL GFP_KERNEL -#define SLAB_NFS GFP_NFS#define SLAB_DMA GFP_DMA#define SLAB_LEVEL_MASK (__GFP_WAIT|__GFP_HIGH|__GFP_IO|__GFP_HIGHIO|__GFP_FS)
Signature · 1 line
Revolutions do not require corporate support.