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, 7 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index cd57f795229e..e37faa3a7bac 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -156,6 +156,13 @@ static void nfs_zap_acl_cache(struct inode *inode)
156 spin_unlock(&inode->i_lock); 156 spin_unlock(&inode->i_lock);
157} 157}
158 158
159void nfs_invalidate_atime(struct inode *inode)
160{
161 spin_lock(&inode->i_lock);
162 NFS_I(inode)->cache_validity |= NFS_INO_INVALID_ATIME;
163 spin_unlock(&inode->i_lock);
164}
165
159/* 166/*
160 * Invalidate, but do not unhash, the inode. 167 * Invalidate, but do not unhash, the inode.
161 * NB: must be called with inode->i_lock held! 168 * NB: must be called with inode->i_lock held!