Skip to contentSkip to conversation

NFS: Fix the return value in nfs_page_mkwrite()

PATCH New Trond Myklebust 1 participant 1 message Apr 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFS: Fix the return value in nfs_page_mkwrite()

Commit c2ec175c39f62949438354f603f4aa170846aabb (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...

---
 fs/nfs/file.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/nfs/file.c +0 -2
index 3523b89..5a97bcf 100644
@@ -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)
Signature · 1 line
1.6.0.4