diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-23 19:47:49 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-23 19:47:49 -0400 |
commit | d561c025ee3a0aee53a225bedce0ee35fe12f335 (patch) | |
tree | df73aa103723162c3a980104ae204f93e91c9caa /fs/btrfs/disk-io.c | |
parent | 7f5c15160e1436a53d01f9190db11c2a3a4d788a (diff) | |
download | lwn-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.c | 1 |
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)); |