summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason2008-07-23 05:06:41 +0200
committerChris Mason2008-09-25 17:04:05 +0200
commitc286ac48ed7aaf53586f575af6053ae2a0f8554a (patch)
tree794cb0e7269c62568e39c160b0f0f03e181c1d93 /fs/btrfs/ctree.h
parentBtrfs: Add some conditional schedules near the alloc_mutex (diff)
downloadkernel-qcow2-linux-c286ac48ed7aaf53586f575af6053ae2a0f8554a.tar.gz
kernel-qcow2-linux-c286ac48ed7aaf53586f575af6053ae2a0f8554a.tar.xz
kernel-qcow2-linux-c286ac48ed7aaf53586f575af6053ae2a0f8554a.zip
Btrfs: alloc_mutex latency reduction
This releases the alloc_mutex in a few places that hold it for over long operations. btrfs_lookup_block_group is changed so that it doesn't need the mutex at all. Signed-off-by: Chris Mason <chris.mason@oracle.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 eeb5afa6e9b1..90504ba7f838 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -483,6 +483,7 @@ struct btrfs_block_group_cache {
struct btrfs_key key;
struct btrfs_block_group_item item;
struct btrfs_space_info *space_info;
+ spinlock_t lock;
u64 pinned;
u64 flags;
int cached;