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:
@@ -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)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user