]> 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)
commitc04ec2a7f41f876afbe7167f6ed498edd877b840
tree5f441ebc910cccc4994542a945de959d88eb277d
parentb64fb8dd49453b806cb3e78a3bfe5c379a473eec
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