summaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2023-11-13 03:38:48 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2023-11-25 08:50:19 +0100
commit57851607326a2beef21e67f83f4f53a90df8445a (patch)
treee5aa56f0c5ab991ea2ef1ed036d61403f8f2c54f /fs/dcache.c
parentd_genocide(): move the extern into fs/internal.h (diff)
downloadlinux-57851607326a2beef21e67f83f4f53a90df8445a.tar.xz
linux-57851607326a2beef21e67f83f4f53a90df8445a.zip
get rid of DCACHE_GENOCIDE
... now that we never call d_genocide() other than from kill_litter_super() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 5947556b6e90..8473c8f0ce22 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -3198,10 +3198,7 @@ static enum d_walk_ret d_genocide_kill(void *data, struct dentry *dentry)
if (d_unhashed(dentry) || !dentry->d_inode)
return D_WALK_SKIP;
- if (!(dentry->d_flags & DCACHE_GENOCIDE)) {
- dentry->d_flags |= DCACHE_GENOCIDE;
- dentry->d_lockref.count--;
- }
+ dentry->d_lockref.count--;
}
return D_WALK_CONTINUE;
}