]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit51b926589a50de708b4a9acf052f60c271a12b0e
treea051134c0d1c74425a5f60adc0ca252c5db15b35
parent479ce8b374271c49c257b4777398839bec270540
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