diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-10-15 23:03:16 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-10-29 00:19:19 +0100 |
commit | a3f432bfd06a4ec3b812e32d3266e0d1ad75d008 (patch) | |
tree | 0e360753066b9dc61df85b2c5234f544ff418527 /fs/afs | |
parent | SUNRPC: Fix buffer overflow checking in gss_encode_v0_msg/gss_encode_v1_msg (diff) | |
download | linux-a3f432bfd06a4ec3b812e32d3266e0d1ad75d008.tar.xz linux-a3f432bfd06a4ec3b812e32d3266e0d1ad75d008.zip |
nfs: use IS_ROOT not DCACHE_DISCONNECTED
This check was added by Al Viro with
d9e80b7de91db05c1c4d2e5ebbfd70b3b3ba0e0f "nfs d_revalidate() is too
trigger-happy with d_drop()", with the explanation that we don't want to
remove the root of a disconnected tree, which will still be included on
the s_anon list.
But DCACHE_DISCONNECTED does *not* actually identify dentries that are
disconnected from the dentry tree or hashed on s_anon. IS_ROOT() is the
way to do that.
Also add a comment from Al's commit to remind us why this check is
there.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/afs')
0 files changed, 0 insertions, 0 deletions