Searched hist:"342 a67f0884293639bd17ea44df754ead799e669" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/nfs/ |
H A D | dir.c | diff 342a67f0884293639bd17ea44df754ead799e669 Wed Jul 07 21:08:32 CDT 2021 Trond Myklebust <trond.myklebust@hammerspace.com> 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>
|