]> git.baikalelectronics.ru Git - kernel.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)
commitd202a3d3cdb9b326df0300e504fbedbd67065b15
tree12b0b9a7d8c4dbac5ab17b5cef9f3d5e32df16b1
parentbbb04f49e4f6ed948ed346765334f68faf595522
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