summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-23 19:47:49 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-23 19:47:49 -0400
commitd561c025ee3a0aee53a225bedce0ee35fe12f335 (patch)
treedf73aa103723162c3a980104ae204f93e91c9caa /fs/btrfs/disk-io.c
parent7f5c15160e1436a53d01f9190db11c2a3a4d788a (diff)
downloadlwn-d561c025ee3a0aee53a225bedce0ee35fe12f335.tar.gz
lwn-d561c025ee3a0aee53a225bedce0ee35fe12f335.zip
Btrfs: very minimal locking
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 3dea757d4cbb..e32ddff55b0e 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -116,6 +116,7 @@ struct btrfs_root *open_ctree(struct super_block *sb,
fs_info->sb_buffer = sb_buffer;
fs_info->sb = sb;
mutex_init(&fs_info->trans_mutex);
+ mutex_init(&fs_info->fs_mutex);
memset(&fs_info->current_insert, 0, sizeof(fs_info->current_insert));
memset(&fs_info->last_insert, 0, sizeof(fs_info->last_insert));