Searched hist:"9019 fb391de02cbff422090768b73afe9f6174df" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/nfs/ |
H A D | dir.c | diff 9019fb391de02cbff422090768b73afe9f6174df Wed Jul 07 20:43:09 CDT 2021 Trond Myklebust <trond.myklebust@hammerspace.com> NFS: Label the dentry with a verifier in nfs_rmdir() and nfs_unlink()
After the success of an operation such as rmdir() or unlink(), we expect to add the dentry back to the dcache as an ordinary negative 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>
|