diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2025-02-23 15:39:26 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-06-11 13:30:36 -0400 |
commit | a3e65fa2e31ec529febce0c9c4946d4fcbd416bf (patch) | |
tree | fbc037e031ddcdec440a0ca0db036d89645938b4 | |
parent | fcb1e72060391bde188f243b9c3115c78cbffa73 (diff) |
correct the set of flags forbidden at d_set_d_op() time
DCACHE_OP_PRUNE in ->d_flags at the time of d_set_d_op() should've
been treated the same as any other DCACHE_OP_... - we forgot to adjust
that WARN_ON() when DCACHE_OP_PRUNE had been introduced...
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/dcache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index f998e26c9cd4..27e6d2f36973 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -1839,7 +1839,8 @@ EXPORT_SYMBOL(d_alloc_name); #define DCACHE_OP_FLAGS \ (DCACHE_OP_HASH | DCACHE_OP_COMPARE | DCACHE_OP_REVALIDATE | \ - DCACHE_OP_WEAK_REVALIDATE | DCACHE_OP_DELETE | DCACHE_OP_REAL) + DCACHE_OP_WEAK_REVALIDATE | DCACHE_OP_DELETE | DCACHE_OP_PRUNE | \ + DCACHE_OP_REAL) static unsigned int d_op_flags(const struct dentry_operations *op) { |