From: Jeff Layton Date: Thu, 7 Jun 2007 13:58:08 +0000 (-0400) Subject: NFS: Use GFP_HIGHUSER for page allocation in nfs_symlink() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=83d93f2229348837bf988a1048f7f38789474471;p=linux-beck.git NFS: Use GFP_HIGHUSER for page allocation in nfs_symlink() nfs_symlink() allocates a GFP_KERNEL page for the pagecache. Most pagecache pages are allocated using GFP_HIGHUSER, and there's no reason not to do that in nfs_symlink() as well. Signed-off-by: Jeff Layton --- diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index c02a7962e69d..0f41678fd7ee 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1534,7 +1534,7 @@ static int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *sym lock_kernel(); - page = alloc_page(GFP_KERNEL); + page = alloc_page(GFP_HIGHUSER); if (!page) { unlock_kernel(); return -ENOMEM;