Skip to content
Commit 9019fb39 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 342a67f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment