aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file-item.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-08-04 08:35:53 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:06 -0400
commit6dab81574346c831ded96ae3ab0e8f9ca72c37ae (patch)
tree5ce65744c1ed6d81a7799c52532893d2e0ae3da1 /fs/btrfs/file-item.c
parent2dd3e67b1eaec8504da7e12b8afee77323a49f38 (diff)
downloadkernel_samsung_smdk4412-6dab81574346c831ded96ae3ab0e8f9ca72c37ae.zip
kernel_samsung_smdk4412-6dab81574346c831ded96ae3ab0e8f9ca72c37ae.tar.gz
kernel_samsung_smdk4412-6dab81574346c831ded96ae3ab0e8f9ca72c37ae.tar.bz2
Btrfs: Hold csum mutex while reading in sums during readpages
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r--fs/btrfs/file-item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c
index a5ff19b..70af24a 100644
--- a/fs/btrfs/file-item.c
+++ b/fs/btrfs/file-item.c
@@ -150,7 +150,6 @@ int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode,
struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
path = btrfs_alloc_path();
- path->reada = 2;
WARN_ON(bio->bi_vcnt <= 0);
@@ -177,6 +176,7 @@ int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode,
printk("no csum found for inode %lu start "
"%llu\n", inode->i_ino,
(unsigned long long)offset);
+ item = NULL;
goto found;
}
btrfs_item_key_to_cpu(path->nodes[0], &found_key,