]> bbs.cooldavid.org Git - net-next-2.6.git/commit
NFS: Ensure that writeback_single_inode() calls write_inode() when syncing
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 9 Apr 2010 23:07:07 +0000 (19:07 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 9 Apr 2010 23:08:17 +0000 (19:08 -0400)
commitb80c3cb628f0ebc241b02e38dd028969fb8026a2
tree12b0b9a7d8c4dbac5ab17b5cef9f3d5e32df16b1
parent1544fa0f7a46241582abc48f07b74f3d846379e4
NFS: Ensure that writeback_single_inode() calls write_inode() when syncing

Since writeback_single_inode() checks the inode->i_state flags _before_ it
flushes out the data, we need to ensure that the I_DIRTY_DATASYNC flag is
already set. Otherwise we risk not seeing a call to write_inode(), which
again means that we break fsync() et al...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/write.c