diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-07-22 23:06:42 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:05 -0400 |
commit | ed98b56a6393c5e150fd5095b9eb7fd7d3cfb041 (patch) | |
tree | 1e69d882a08d089d083132b2b10fcf385d857620 /fs/btrfs/transaction.c | |
parent | c286ac48ed7aaf53586f575af6053ae2a0f8554a (diff) |
Btrfs: Take the csum mutex while reading checksums
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 38c75a0256c..0f756e0175c 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -382,6 +382,9 @@ static noinline int add_dirty_roots(struct btrfs_trans_handle *trans, | |||
382 | memcpy(dirty->root, root, sizeof(*root)); | 382 | memcpy(dirty->root, root, sizeof(*root)); |
383 | dirty->root->node = root->commit_root; | 383 | dirty->root->node = root->commit_root; |
384 | dirty->latest_root = root; | 384 | dirty->latest_root = root; |
385 | spin_lock_init(&dirty->root->node_lock); | ||
386 | mutex_init(&dirty->root->objectid_mutex); | ||
387 | |||
385 | root->commit_root = NULL; | 388 | root->commit_root = NULL; |
386 | 389 | ||
387 | root->root_key.offset = root->fs_info->generation; | 390 | root->root_key.offset = root->fs_info->generation; |