diff options
author | David Sterba <dsterba@suse.com> | 2025-04-23 17:57:16 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-05-15 14:30:48 +0200 |
commit | a24d185c3675f58691a013b58ba4a02a9763ac9f (patch) | |
tree | ef71071350b0a0a5bcad053a4042be2854b47f07 /fs/btrfs/bio.c | |
parent | 9b20d242af41197956c9d3cb6b5bbe7706da5d4d (diff) |
btrfs: change return type of btree_csum_one_bio() to int
The type blk_status_t is from block layer and not related to checksums
in our context. Use int internally and do the conversions to blk_status_t
as needed in btrfs_bio_csum().
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/bio.c')
-rw-r--r-- | fs/btrfs/bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/bio.c b/fs/btrfs/bio.c index 4f622bf130c2..4ceb1bd511df 100644 --- a/fs/btrfs/bio.c +++ b/fs/btrfs/bio.c @@ -515,7 +515,7 @@ static void btrfs_submit_bio(struct bio *bio, struct btrfs_io_context *bioc, static blk_status_t btrfs_bio_csum(struct btrfs_bio *bbio) { if (bbio->bio.bi_opf & REQ_META) - return btree_csum_one_bio(bbio); + return errno_to_blk_status(btree_csum_one_bio(bbio)); return errno_to_blk_status(btrfs_csum_one_bio(bbio)); } |