fs: consolidate dentry kill sequence
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:49:48 +0000 (17:49 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:25 +0000 (17:50 +1100)
commit77812a1ef139d84270d27faacc0630c887411013
treea051134c0d1c74425a5f60adc0ca252c5db15b35
parentec33679d78f9d653a44ddba10b5fb824c06330a1
fs: consolidate dentry kill sequence

The tricky locking for disposing of a dentry is duplicated 3 times in the
dcache (dput, pruning a dentry from the LRU, and pruning its ancestors).
Consolidate them all into a single function dentry_kill.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
fs/dcache.c