summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@redhat.com>2008-11-20 12:16:16 -0500
committerChris Mason <chris.mason@oracle.com>2008-11-20 12:16:16 -0500
commitea6a478ed9758cb0f5af228104b9434840aa20ff (patch)
tree1dd41601f8bb031a1e222b073458067af5d4b70d /fs/btrfs/ctree.h
parent0e6bd956ed238eb2f69386f251847fe3163532e1 (diff)
downloadlinux-ea6a478ed9758cb0f5af228104b9434840aa20ff.tar.bz2
Btrfs: Fix for lockdep warnings with alloc_mutex and pinned_mutex
This the lockdep complaint by having a different mutex to gaurd caching the block group, so you don't end up with this backwards dependancy. Thank you, Signed-off-by: Josef Bacik <jbacik@redhat.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 0f2a9b584fb6..166896dd44c2 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -580,6 +580,7 @@ struct btrfs_block_group_cache {
struct btrfs_block_group_item item;
spinlock_t lock;
struct mutex alloc_mutex;
+ struct mutex cache_mutex;
u64 pinned;
u64 reserved;
u64 flags;