Skip to content

Commit

Permalink
NFS: nfs_mark_for_revalidate don't update cache_change_attribute
Browse files Browse the repository at this point in the history
Just let the subsequent inode revalidation do the update...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 9, 2007
1 parent 7668fdb commit f382111
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/linux/nfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,8 @@ static inline void nfs_mark_for_revalidate(struct inode *inode)

spin_lock(&inode->i_lock);
nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ACCESS;
if (S_ISDIR(inode->i_mode)) {
if (S_ISDIR(inode->i_mode))
nfsi->cache_validity |= NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA;
nfsi->cache_change_attribute = jiffies;
}
spin_unlock(&inode->i_lock);
}

Expand Down

0 comments on commit f382111

Please sign in to comment.