diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index f37e09e724f7..4d729d90d2b8 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -351,12 +351,8 @@ int __btrfs_submit_bio_hook(struct inode *inode, int rw, struct bio *bio, | |||
351 | { | 351 | { |
352 | struct btrfs_root *root = BTRFS_I(inode)->root; | 352 | struct btrfs_root *root = BTRFS_I(inode)->root; |
353 | int ret = 0; | 353 | int ret = 0; |
354 | struct btrfs_ordered_sum *sums; | ||
355 | 354 | ||
356 | ret = btrfs_csum_one_bio(root, bio, &sums); | 355 | ret = btrfs_csum_one_bio(root, inode, bio); |
357 | BUG_ON(ret); | ||
358 | |||
359 | ret = btrfs_add_ordered_sum(inode, sums); | ||
360 | BUG_ON(ret); | 356 | BUG_ON(ret); |
361 | 357 | ||
362 | return btrfs_map_bio(root, rw, bio, mirror_num, 1); | 358 | return btrfs_map_bio(root, rw, bio, mirror_num, 1); |