提交 83d93f22 编写于 作者: J Jeff Layton 提交者: Trond Myklebust

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: NJeff Layton <jlayton@redhat.com>
上级 a0356862
...@@ -1534,7 +1534,7 @@ static int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *sym ...@@ -1534,7 +1534,7 @@ static int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *sym
lock_kernel(); lock_kernel();
page = alloc_page(GFP_KERNEL); page = alloc_page(GFP_HIGHUSER);
if (!page) { if (!page) {
unlock_kernel(); unlock_kernel();
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册