fs: dcache reduce prune_one_dentry locking
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:49:45 +0000 (17:49 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:25 +0000 (17:50 +1100)
prune_one_dentry can avoid quite a bit of locking in the common case where
ancestors have an elevated refcount. Alternatively, we could have gone the
other way and made fewer trylocks in the case where d_count goes to zero, but
is probably less common.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>

No differences found