DCACHE_OP_PRUNE is not checked before setting dentry cache operator. This will show no warning even if operation pointers of a dentry with only d_prune pointer are changed by calling d_set_d_op. Signed-off-by: Myungho Jung <mhjungk@xxxxxxxxx> --- fs/dcache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/dcache.c b/fs/dcache.c index cddf397..057862a 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -1711,6 +1711,7 @@ void d_set_d_op(struct dentry *dentry, const struct dentry_operations *op) DCACHE_OP_REVALIDATE | DCACHE_OP_WEAK_REVALIDATE | DCACHE_OP_DELETE | + DCACHE_OP_PRUNE | DCACHE_OP_REAL)); dentry->d_op = op; if (!op) -- 2.7.4