OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e2c4f2
)
NFS: Fix the return value in nfs_page_mkwrite()
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 7 Apr 2009 21:02:53 +0000
(14:02 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 7 Apr 2009 21:07:03 +0000
(14:07 -0700)
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...
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/file.c
patch
|
blob
|
history
diff --git
a/fs/nfs/file.c
b/fs/nfs/file.c
index
3523b89
..
5a97bcf
100644
(file)
--- a/
fs/nfs/file.c
+++ b/
fs/nfs/file.c
@@
-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)