You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
dcache.c: call ->d_prune() regardless of d_unhashed()
the only in-tree instance checks d_unhashed() anyway, out-of-tree code can preserve the current behaviour by adding such check if they want it and we get an ability to use it in cases where we *want* to be notified of killing being inevitable before ->d_lock is dropped, whether it's unhashed or not. In particular, autofs would benefit from that. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
+1
-1
@@ -482,7 +482,7 @@ static void __dentry_kill(struct dentry *dentry)
|
|||||||
* inform the fs via d_prune that this dentry is about to be
|
* inform the fs via d_prune that this dentry is about to be
|
||||||
* unhashed and destroyed.
|
* 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);
|
dentry->d_op->d_prune(dentry);
|
||||||
|
|
||||||
if (dentry->d_flags & DCACHE_LRU_LIST) {
|
if (dentry->d_flags & DCACHE_LRU_LIST) {
|
||||||
|
|||||||
Reference in New Issue
Block a user