]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
correct the set of flags forbidden at d_set_d_op() time
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 23 Feb 2025 20:39:26 +0000 (15:39 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Jun 2025 17:30:36 +0000 (13:30 -0400)
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>
fs/dcache.c

index f998e26c9cd480e2f4aee2032d35ee94d71e5e82..27e6d2f36973fd3dc1069198378bafbbf1521747 100644 (file)
@@ -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)
 {