* [PATCH] nfs: set verifier on existing dentries in nfs_prime_dcache
@ 2013-07-04 10:35 Jeff Layton
0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2013-07-04 10:35 UTC (permalink / raw)
To: trond.myklebust; +Cc: linux-nfs, smayhew
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>
---
fs/nfs/dir.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index e093e73..b4043e5 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -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)
--
1.8.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-04 10:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-04 10:35 [PATCH] nfs: set verifier on existing dentries in nfs_prime_dcache Jeff Layton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).