md-bitmap: cleanup read_sb_page
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2023 06:48:36 +0000 (08:48 +0200)
committerSong Liu <song@kernel.org>
Thu, 27 Jul 2023 07:13:29 +0000 (00:13 -0700)
commit0c3ea5cc8fbdc3515cfb0c47f5a284882f5e4d80
tree486eef8c48aebc6961894144acce3fa9ab286346
parent844dc6691ad5f53a624f4b07bf84037abbb8fce2
md-bitmap: cleanup read_sb_page

Convert read_sb_page to the normal kernel coding style, calculate the
target sector only once, and add a local iosize variable to make the call
to sync_page_io more readable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230615064840.629492-8-hch@lst.de
drivers/md/md-bitmap.c