aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 6922469d6fc5..6be46d21c01e 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1226,10 +1226,6 @@ int nfs_refresh_inode(struct inode *inode, struct nfs_fattr *fattr)
1226 loff_t cur_size, new_isize; 1226 loff_t cur_size, new_isize;
1227 int data_unstable; 1227 int data_unstable;
1228 1228
1229 /* Do we hold a delegation? */
1230 if (nfs_have_delegation(inode, FMODE_READ))
1231 return 0;
1232
1233 spin_lock(&inode->i_lock); 1229 spin_lock(&inode->i_lock);
1234 1230
1235 /* Are we in the process of updating data on the server? */ 1231 /* Are we in the process of updating data on the server? */
@@ -1350,7 +1346,8 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr, unsign
1350 nfsi->read_cache_jiffies = fattr->timestamp; 1346 nfsi->read_cache_jiffies = fattr->timestamp;
1351 1347
1352 /* Are we racing with known updates of the metadata on the server? */ 1348 /* Are we racing with known updates of the metadata on the server? */
1353 data_unstable = ! nfs_verify_change_attribute(inode, verifier); 1349 data_unstable = ! (nfs_verify_change_attribute(inode, verifier) ||
1350 (nfsi->cache_validity & NFS_INO_REVAL_PAGECACHE));
1354 1351
1355 /* Check if our cached file size is stale */ 1352 /* Check if our cached file size is stale */
1356 new_isize = nfs_size_to_loff_t(fattr->size); 1353 new_isize = nfs_size_to_loff_t(fattr->size);