aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2013-07-04 06:35:23 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-07-09 17:16:39 -0400
commitcda57a1ef6f0da7e24f392ffdf00538ec0480310 (patch)
treec41fa16fad73618d4aaf2206530279a02ffab7ef /fs
parenta82a729f04232ccd0b59406574ba4cf20027a49d (diff)
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 <smayhew@redhat.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 0fac2cb1ea18..bd7e1cc53b90 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -450,6 +450,7 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry)
450 dentry = d_lookup(parent, &filename); 450 dentry = d_lookup(parent, &filename);
451 if (dentry != NULL) { 451 if (dentry != NULL) {
452 if (nfs_same_file(dentry, entry)) { 452 if (nfs_same_file(dentry, entry)) {
453 nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
453 status = nfs_refresh_inode(dentry->d_inode, entry->fattr); 454 status = nfs_refresh_inode(dentry->d_inode, entry->fattr);
454 if (!status) 455 if (!status)
455 nfs_setsecurity(dentry->d_inode, entry->fattr, entry->label); 456 nfs_setsecurity(dentry->d_inode, entry->fattr, entry->label);