]> err.no Git - linux-2.6/commitdiff
NFS: Use GFP_HIGHUSER for page allocation in nfs_symlink()
authorJeff Layton <jlayton@redhat.com>
Thu, 7 Jun 2007 13:58:08 +0000 (09:58 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:25 +0000 (23:40 -0400)
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 <jlayton@redhat.com>
fs/nfs/dir.c

index c02a7962e69d00ec10222132f4fa9c951ad2406c..0f41678fd7ee651aa9b2ecda68ccb90deb58a751 100644 (file)
@@ -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;