]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: simplify parameters of submit_read_repair() and rename
authorQu Wenruo <wqu@suse.com>
Mon, 21 Mar 2022 05:48:42 +0000 (13:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:13 +0000 (17:03 +0200)
commite39d1e1e1d54b6f146fd2cbe0c0a7e5d07b108c6
tree436c294be29eca5a7cb5be6afac783bac0d1a005
parent99ab42b0109bf99443d2d2b097dc73a4a2b91a39
btrfs: simplify parameters of submit_read_repair() and rename

Cleanup the function submit_read_repair() by:

- Remove the fixed argument submit_bio_hook()
  The function is only called on buffered data read path, so the
  @submit_bio_hook argument is always btrfs_submit_data_bio().

  Since it's fixed, then there is no need to pass that argument at all.

- Rename the function to submit_data_read_repair()
  Just to be more explicit on all the 3 things, data, read and repair.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c