btrfs: hoist fs_info out of loops in end_bbio_data_write and end_bbio_data_read
authorDavid Sterba <dsterba@suse.com>
Wed, 24 Jan 2024 22:24:03 +0000 (23:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:49 +0000 (16:24 +0100)
commite84bfffc4bbff4f2cf292e270d6654fe43efd29f
tree79044b6974e5dbdc37a36dd9473e4230a4837824
parent41044b41ad2c8c8165a42ec6e9a4096826dcf153
btrfs: hoist fs_info out of loops in end_bbio_data_write and end_bbio_data_read

The fs_info and sectorsize remain the same during the loops, no need to
set them on each iteration.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c