projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eef8a3
)
NFS: Initialise the readdir verifier as best we can in nfs_opendir()
author
Trond Myklebust
<trond.myklebust@hammerspace.com>
Fri, 25 Feb 2022 15:22:30 +0000
(10:22 -0500)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Mon, 28 Feb 2022 15:11:32 +0000
(10:11 -0500)
For the purpose of ensuring that opendir() followed by seekdir() work as
correctly as possible, try to initialise the readdir verifier in
nfs_opendir().
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c
patch
|
blob
|
history
diff --git
a/fs/nfs/dir.c
b/fs/nfs/dir.c
index 1aa55cac9d9abf2fbe9f500c856c917b6fb78e00..1dfbd05081adbb4573792d43863d25c9548f97ca 100644
(file)
--- a/
fs/nfs/dir.c
+++ b/
fs/nfs/dir.c
@@
-89,6
+89,7
@@
static struct nfs_open_dir_context *alloc_nfs_open_dir_context(struct inode *dir
NFS_INO_REVAL_FORCED);
list_add(&ctx->list, &nfsi->open_files);
clear_bit(NFS_INO_FORCE_READDIR, &nfsi->flags);
+ memcpy(ctx->verf, nfsi->cookieverf, sizeof(ctx->verf));
spin_unlock(&dir->i_lock);
return ctx;
}