Skip to content

Commit 5785160

Browse files
author
Al Viro
committed
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>
1 parent 8a54b38 commit 5785160

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

fs/dcache.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3198,10 +3198,7 @@ static enum d_walk_ret d_genocide_kill(void *data, struct dentry *dentry)
31983198
if (d_unhashed(dentry) || !dentry->d_inode)
31993199
return D_WALK_SKIP;
32003200

3201-
if (!(dentry->d_flags & DCACHE_GENOCIDE)) {
3202-
dentry->d_flags |= DCACHE_GENOCIDE;
3203-
dentry->d_lockref.count--;
3204-
}
3201+
dentry->d_lockref.count--;
32053202
}
32063203
return D_WALK_CONTINUE;
32073204
}

include/linux/dcache.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ struct dentry_operations {
173173
#define DCACHE_DONTCACHE BIT(7) /* Purge from memory on final dput() */
174174

175175
#define DCACHE_CANT_MOUNT BIT(8)
176-
#define DCACHE_GENOCIDE BIT(9)
177176
#define DCACHE_SHRINK_LIST BIT(10)
178177

179178
#define DCACHE_OP_WEAK_REVALIDATE BIT(11)

0 commit comments

Comments
 (0)