summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/raid56.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-06-17 12:04:08 +0200
committerDavid Sterba <dsterba@suse.com>2022-07-25 17:45:39 +0200
commit31683f4aae4def0ecf07c77b5440833cd686bc7a (patch)
treefc7c599b7c4a4ed2e511b7978cbcc6dfc0f5f918 /fs/btrfs/raid56.h
parent1a722d8f5be22b0d8c9db365abb67cb3c2e4215c (diff)
downloadlinux-31683f4aae4def0ecf07c77b5440833cd686bc7a.tar.gz
linux-31683f4aae4def0ecf07c77b5440833cd686bc7a.tar.bz2
linux-31683f4aae4def0ecf07c77b5440833cd686bc7a.zip
btrfs: do not return errors from raid56_parity_write
Always consume the bio and call the end_io handler on error instead of returning an error and letting the caller handle it. This matches what the block layer submission does and avoids any confusion on who needs to handle errors. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Tested-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/raid56.h')
-rw-r--r--fs/btrfs/raid56.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/raid56.h b/fs/btrfs/raid56.h
index 1dce205b79bf..3f223ae39462 100644
--- a/fs/btrfs/raid56.h
+++ b/fs/btrfs/raid56.h
@@ -167,7 +167,7 @@ struct btrfs_device;
int raid56_parity_recover(struct bio *bio, struct btrfs_io_context *bioc,
int mirror_num, int generic_io);
-int raid56_parity_write(struct bio *bio, struct btrfs_io_context *bioc);
+void raid56_parity_write(struct bio *bio, struct btrfs_io_context *bioc);
void raid56_add_scrub_pages(struct btrfs_raid_bio *rbio, struct page *page,
unsigned int pgoff, u64 logical);