Btrfs: Use a mutex in the extent buffer for tree block locking
authorChris Mason <chris.mason@oracle.com>
Tue, 22 Jul 2008 15:18:08 +0000 (11:18 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:05 +0000 (11:04 -0400)
commita61e6f29dc7c9d56a776a518eed92bbc61848263
tree6856ad3e5822eacfc2ac94693b6023ef81567fd2
parent6af118ce51b52ceda357c671550c79628b9c4a65
Btrfs: Use a mutex in the extent buffer for tree block locking

This replaces the use of the page cache lock bit for locking, which wasn't
suitable for block size < page size and couldn't be used recursively.

The mutexes alone don't fix either problem, but they are the first step.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/locking.c