md-bitmap: account for mddev->bitmap_info.offset in read_sb_page
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2023 06:48:37 +0000 (08:48 +0200)
committerSong Liu <song@kernel.org>
Thu, 27 Jul 2023 07:13:29 +0000 (00:13 -0700)
commitf5f2d5ac9f6e807e080311ec36bdf3d6c45b40d4
tree33fd5f8082114e619bf2461b12b00f993334f349
parent0c3ea5cc8fbdc3515cfb0c47f5a284882f5e4d80
md-bitmap: account for mddev->bitmap_info.offset in read_sb_page

Diretly apply mddev->bitmap_info.offset to the sector number to read
instead of doing that in both callers.

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