diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-07-22 11:18:08 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:05 -0400 |
commit | a61e6f29dc7c9d56a776a518eed92bbc61848263 (patch) | |
tree | 6856ad3e5822eacfc2ac94693b6023ef81567fd2 /fs/btrfs/extent_io.h | |
parent | 6af118ce51b52ceda357c671550c79628b9c4a65 (diff) |
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>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index dd367617d780..6c03e6a19938 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h | |||
@@ -90,6 +90,7 @@ struct extent_buffer { | |||
90 | int flags; | 90 | int flags; |
91 | struct list_head leak_list; | 91 | struct list_head leak_list; |
92 | struct rb_node rb_node; | 92 | struct rb_node rb_node; |
93 | struct mutex mutex; | ||
93 | }; | 94 | }; |
94 | 95 | ||
95 | struct extent_map_tree; | 96 | struct extent_map_tree; |