1
0
Fork 0

NFS: Fix the return value in nfs_page_mkwrite()

Commit c2ec175c39 ("mm: page_mkwrite
change prototype to match fault") exposed a bug in the NFS
implementation of page_mkwrite.  We should be returning 0 on success...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
wifi-calibration
Trond Myklebust 2009-04-07 14:02:53 -07:00 committed by Linus Torvalds
parent 8e2c4f2844
commit 2b2ec7554c
1 changed files with 0 additions and 2 deletions

View File

@ -516,8 +516,6 @@ static int nfs_vm_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
goto out_unlock;
ret = nfs_updatepage(filp, page, 0, pagelen);
if (ret == 0)
ret = pagelen;
out_unlock:
unlock_page(page);
if (ret)