NFS: Ensure that we always drop inodes that have been marked as stale

There is no need to cache stale inodes.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Trond Myklebust
2012-12-14 14:36:36 -05:00
parent 48d7a57693
commit eed9935745
4 changed files with 9 additions and 0 deletions

View File

@@ -107,6 +107,12 @@ u64 nfs_compat_user_ino64(u64 fileid)
return ino;
}
int nfs_drop_inode(struct inode *inode)
{
return NFS_STALE(inode) || generic_drop_inode(inode);
}
EXPORT_SYMBOL_GPL(nfs_drop_inode);
void nfs_clear_inode(struct inode *inode)
{
/*