diff --git a/fs/dcache.c b/fs/dcache.c index d8a77b1c3d52b7bd68640ae33d6873bac5541968..21eee4c08e76e790694723f63e5e745e64589ba3 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -482,7 +482,7 @@ static void __dentry_kill(struct dentry *dentry) * inform the fs via d_prune that this dentry is about to be * unhashed and destroyed. */ - if ((dentry->d_flags & DCACHE_OP_PRUNE) && !d_unhashed(dentry)) + if (dentry->d_flags & DCACHE_OP_PRUNE) dentry->d_op->d_prune(dentry); if (dentry->d_flags & DCACHE_LRU_LIST) {