summaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorNate Diller <nate.diller@gmail.com>2007-05-11 07:55:08 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-05-15 01:33:45 +0200
commit60945cb7c8377b727288275f21791914fe65311c (patch)
treeeb84b18a1e590d3c56b3779b4e1d071b21fca2bc /fs/nfs/write.c
parentNLM: don't use CLONE_SIGHAND in nlmclnt_recovery (diff)
downloadlinux-60945cb7c8377b727288275f21791914fe65311c.tar.xz
linux-60945cb7c8377b727288275f21791914fe65311c.zip
NFS: use zero_user_page
Use zero_user_page() instead of the newly deprecated memclear_highpage_flush(). Signed-off-by: Nate Diller <nate.diller@gmail.com> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> Cc: "J. Bruce Fields" <bfields@fieldses.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index de92b9509d94..211d0b18683b 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -168,7 +168,7 @@ static void nfs_mark_uptodate(struct page *page, unsigned int base, unsigned int
if (count != nfs_page_length(page))
return;
if (count != PAGE_CACHE_SIZE)
- memclear_highpage_flush(page, count, PAGE_CACHE_SIZE - count);
+ zero_user_page(page, count, PAGE_CACHE_SIZE - count, KM_USER0);
SetPageUptodate(page);
}