nfs: set verifier on existing dentries in nfs_prime_dcache
Subsystems (2)
PATCH 1/1 nfs: set verifier on existing dentries in nfs_prime_dcache
nfs_prime_dcache currently only sets the verifier when it doesn't initially a matching dentry in the dcache. Set the verifier in the case where we do find a dentry in the dcache. This ensures that we don't have to look up the dentry again if we want to use it after a readdir.
Cc Scott Mayhew <[email protected]>
Signed-off-by Jeff Layton <[email protected]>
--- fs/nfs/dir.c | 1 + 1 file changed, 1 insertion(+)
fs/nfs/dir.c +1 -0
@@ -448,6 +448,7 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry)if (dentry !=NULL ) {if (nfs_same_file (dentry, entry)) {nfs_refresh_inode (dentry->d_inode, entry->fattr); +nfs_set_verifier (dentry,nfs_save_change_attribute (dir)); goto out; }else {if (d_invalidate (dentry) !=0 )
Signature · 1 line
1.8.1.4