diff options
author | Nikolay Borisov <nborisov@suse.com> | 2019-04-10 09:16:11 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 13:02:40 -0400 |
commit | f9756261c28c0acdaac8a7a8894d3e25d334d5f3 (patch) | |
tree | 0cc3eebe240a3f01930ced914c5f194fba59fed9 /fs/btrfs/file-item.c | |
parent | 8d47a0d8f7947422dd359ac8e462687f81a7a137 (diff) |
btrfs: Remove redundant inode argument from btrfs_add_ordered_sum
Ordered csums are keyed off of a btrfs_ordered_extent, which already has
a reference to the inode. This implies that an explicit inode argument
is redundant. So remove it.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r-- | fs/btrfs/file-item.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index 0867fca4b63d..a120d6ba3a28 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c | |||
@@ -469,7 +469,7 @@ blk_status_t btrfs_csum_one_bio(struct inode *inode, struct bio *bio, | |||
469 | 469 | ||
470 | sums->len = this_sum_bytes; | 470 | sums->len = this_sum_bytes; |
471 | this_sum_bytes = 0; | 471 | this_sum_bytes = 0; |
472 | btrfs_add_ordered_sum(inode, ordered, sums); | 472 | btrfs_add_ordered_sum(ordered, sums); |
473 | btrfs_put_ordered_extent(ordered); | 473 | btrfs_put_ordered_extent(ordered); |
474 | 474 | ||
475 | bytes_left = bio->bi_iter.bi_size - total_bytes; | 475 | bytes_left = bio->bi_iter.bi_size - total_bytes; |
@@ -506,7 +506,7 @@ blk_status_t btrfs_csum_one_bio(struct inode *inode, struct bio *bio, | |||
506 | 506 | ||
507 | } | 507 | } |
508 | this_sum_bytes = 0; | 508 | this_sum_bytes = 0; |
509 | btrfs_add_ordered_sum(inode, ordered, sums); | 509 | btrfs_add_ordered_sum(ordered, sums); |
510 | btrfs_put_ordered_extent(ordered); | 510 | btrfs_put_ordered_extent(ordered); |
511 | return 0; | 511 | return 0; |
512 | } | 512 | } |