Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Trond Myklebust and committed by
Linus Torvalds
2b2ec755 8e2c4f28

-2
-2
fs/nfs/file.c
··· 516 516 goto out_unlock; 517 517 518 518 ret = nfs_updatepage(filp, page, 0, pagelen); 519 - if (ret == 0) 520 - ret = pagelen; 521 519 out_unlock: 522 520 unlock_page(page); 523 521 if (ret)