aboutsummaryrefslogtreecommitdiffstats
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)
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 {
580 struct btrfs_block_group_item item; 580 struct btrfs_block_group_item item;
581 spinlock_t lock; 581 spinlock_t lock;
582 struct mutex alloc_mutex; 582 struct mutex alloc_mutex;
583 struct mutex cache_mutex;
583 u64 pinned; 584 u64 pinned;
584 u64 reserved; 585 u64 reserved;
585 u64 flags; 586 u64 flags;