]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: pass a btrfs_bio to btrfs_repair_one_sector
authorChristoph Hellwig <hch@lst.de>
Thu, 7 Jul 2022 05:33:28 +0000 (07:33 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 17:55:19 +0000 (19:55 +0200)
commitf4b26622f1f07b4a21a87c151e3dc7d76a824991
tree3a11db9c20f9bf3b868ceb5c8e4f4df087182944
parent047bea759c80a5789c92174d0d387c85c505bfba
btrfs: pass a btrfs_bio to btrfs_repair_one_sector

Pass the btrfs_bio instead of the plain bio to btrfs_repair_one_sector,
and remove the start and failed_mirror arguments in favor of deriving
them from the btrfs_bio.  For this to work ensure that the file_offset
field is also initialized for buffered I/O.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c