aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-07-22 23:06:42 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:05 -0400
commited98b56a6393c5e150fd5095b9eb7fd7d3cfb041 (patch)
tree1e69d882a08d089d083132b2b10fcf385d857620 /fs/btrfs/ordered-data.c
parentc286ac48ed7aaf53586f575af6053ae2a0f8554a (diff)
Btrfs: Take the csum mutex while reading checksums
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
-rw-r--r--fs/btrfs/ordered-data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index 830dbaea6853..b695f5b29c45 100644
--- a/fs/btrfs/ordered-data.c
+++ b/fs/btrfs/ordered-data.c
@@ -545,7 +545,7 @@ int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u32 *sum)
545 ordered_sum = list_entry(cur, struct btrfs_ordered_sum, list); 545 ordered_sum = list_entry(cur, struct btrfs_ordered_sum, list);
546 if (offset >= ordered_sum->file_offset) { 546 if (offset >= ordered_sum->file_offset) {
547 num_sectors = ordered_sum->len / sectorsize; 547 num_sectors = ordered_sum->len / sectorsize;
548 sector_sums = &ordered_sum->sums; 548 sector_sums = ordered_sum->sums;
549 for (i = 0; i < num_sectors; i++) { 549 for (i = 0; i < num_sectors; i++) {
550 if (sector_sums[i].offset == offset) { 550 if (sector_sums[i].offset == offset) {
551 *sum = sector_sums[i].sum; 551 *sum = sector_sums[i].sum;