]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Clear NFS_INO_REVAL_PAGECACHE when we update the file size
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 20 Jun 2014 17:16:38 +0000 (13:16 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 24 Jun 2014 22:46:57 +0000 (18:46 -0400)
commit6fb9a9e32ab1166a9fc4ec019c63a7c217638163
tree5f441ebc910cccc4994542a945de959d88eb277d
parent4deca3b56f8d7bfc89e64db902bfdedf177dd082
NFS: Clear NFS_INO_REVAL_PAGECACHE when we update the file size

In nfs_update_inode(), if the change attribute is seen to change on
the server, then we set NFS_INO_REVAL_PAGECACHE in order to make
sure that we check the file size.
However, if we also update the file size in the same function, we
don't need to check it again. So make sure that we clear the
NFS_INO_REVAL_PAGECACHE that was set earlier.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c