NFS: Replace __nfs_write_mapping with sync_inode()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 20 Feb 2010 01:03:26 +0000 (17:03 -0800)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 5 Mar 2010 20:44:55 +0000 (15:44 -0500)
commitacdc53b2146c7ee67feb1f02f7bc3020126514b8
tree3d8b087e8526c4caed87229fe12c2a2b261dd0a5
parentc988950eb6dd6f8e6d98503ca094622729e9aa13
NFS: Replace __nfs_write_mapping with sync_inode()

Now that we have correct COMMIT semantics in writeback_single_inode, we can
reduce and simplify nfs_wb_all(). Also replace nfs_wb_nocommit() with a
call to filemap_write_and_wait(), which doesn't need to hold the
inode->i_mutex.

With that done, we can eliminate nfs_write_mapping() altogether.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c
fs/nfs/write.c
include/linux/nfs_fs.h