]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Remove size hack in nfs_inode_attrs_need_update()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 26 Feb 2015 22:57:14 +0000 (17:57 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 2 Mar 2015 04:23:06 +0000 (23:23 -0500)
commit0bbe6af7ec62e0407856240ef1a3236700e2762f
tree22710794d5c32ae8a18f8822741dbd8e13c0e04b
parenta08d2b652a71131170e222236734eb3c86f76ad7
NFS: Remove size hack in nfs_inode_attrs_need_update()

Prior to this patch, we used to always OK attribute updates that extended
the file size on the assumption that we might be performing writeback.
Now that we have attribute barriers to protect the writeback related updates,
we should remove this hack, as it can cause truncate() operations to
apparently be reverted if/when a readahead or getattr RPC call races
with our on-the-wire SETATTR.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tested-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfs/inode.c