dcache.c: call ->d_prune() regardless of d_unhashed()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 30 May 2014 15:39:02 +0000 (11:39 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 Oct 2014 06:38:59 +0000 (02:38 -0400)
commit2926620145095ffb0350b2312ac9d0af8537796f
treea8960531afd289f1be0705c5cf27c240e4510a51
parent29355c3904e1765948c7721719a028b7eb5dfe1d
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>
fs/dcache.c