diff options
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 69036ef39866..3200358195be 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -1207,6 +1207,7 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) | |||
1207 | dfprintk(PAGECACHE, "NFS: revalidating (%s/%Ld)\n", | 1207 | dfprintk(PAGECACHE, "NFS: revalidating (%s/%Ld)\n", |
1208 | inode->i_sb->s_id, (long long)NFS_FILEID(inode)); | 1208 | inode->i_sb->s_id, (long long)NFS_FILEID(inode)); |
1209 | 1209 | ||
1210 | nfs_inc_stats(inode, NFSIOS_INODEREVALIDATE); | ||
1210 | lock_kernel(); | 1211 | lock_kernel(); |
1211 | if (!inode || is_bad_inode(inode)) | 1212 | if (!inode || is_bad_inode(inode)) |
1212 | goto out_nowait; | 1213 | goto out_nowait; |
@@ -1284,7 +1285,6 @@ int nfs_attribute_timeout(struct inode *inode) | |||
1284 | */ | 1285 | */ |
1285 | int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) | 1286 | int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) |
1286 | { | 1287 | { |
1287 | nfs_inc_stats(inode, NFSIOS_INODEREVALIDATE); | ||
1288 | if (!(NFS_I(inode)->cache_validity & NFS_INO_INVALID_ATTR) | 1288 | if (!(NFS_I(inode)->cache_validity & NFS_INO_INVALID_ATTR) |
1289 | && !nfs_attribute_timeout(inode)) | 1289 | && !nfs_attribute_timeout(inode)) |
1290 | return NFS_STALE(inode) ? -ESTALE : 0; | 1290 | return NFS_STALE(inode) ? -ESTALE : 0; |