]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Label the dentry with a verifier in nfs_link(), nfs_symlink()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 8 Jul 2021 02:08:32 +0000 (22:08 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Oct 2021 00:49:05 +0000 (20:49 -0400)
commit9dce8de7c87eb347d114e10382181187411e57fe
tree6dc6194415ca68135a2c6ab1e2c5b308aa48cfee
parent64e4eef3989145850c26208b1f0481f118a4a894
NFS: Label the dentry with a verifier in nfs_link(), nfs_symlink()

After the success of an operation such as link(), or symlink(), we
expect to add the dentry back to the dcache as an ordinary positive
dentry.
However in NFS, unless it is labelled with the appropriate verifier for
the parent directory state, then nfs_lookup_revalidate will end up
discarding that dentry and forcing a new lookup.

The fix is to ensure that we relabel the dentry appropriately on
success.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c