]> git.baikalelectronics.ru Git - kernel.git/commit
add hlist_bl_lock/unlock helpers
authorChristoph Hellwig <hch@infradead.org>
Mon, 25 Apr 2011 18:01:36 +0000 (14:01 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Apr 2011 01:14:10 +0000 (18:14 -0700)
commitfa3adf6a7ec608d46b92fc7ab5a17997d8b9794c
tree5fb41fdaef01d462ff9c7ecfe688760a44e89b6a
parent95441485c9a0ccc6d93fa188de8d1054ef5d3bbe
add hlist_bl_lock/unlock helpers

Now that the whole dcache_hash_bucket crap is gone, go all the way and
also remove the weird locking layering violations for locking the hash
buckets.  Add hlist_bl_lock/unlock helpers to move the locking into the
list abstraction instead of requiring each caller to open code it.
After all allowing for the bit locks is the whole point of these helpers
over the plain hlist variant.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c
fs/gfs2/glock.c
include/linux/list_bl.h