The i_dentry list would make this easy, but on the other hand the
unhashing operation should be very infrequent. I'm still trying to
figure out the best way to handle the "inode goes bad" problem, which
could never happen on a local filesystem. Unhashing the dentry(ies)
seems to be a desirable step, though not sufficient in itself.
I agree that i_dentry was being misused originally, and the right
solution is to pass the dentry wherever a unique name reference is
needed.
Regards,
Bill