md-bitmap: set BITMAP_WRITE_ERROR in write_sb_page
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2023 06:48:30 +0000 (08:48 +0200)
committerSong Liu <song@kernel.org>
Thu, 27 Jul 2023 07:13:29 +0000 (00:13 -0700)
commit59cefee75bda5d4cc14f4a1ca861b69091e22c3e
tree199bddb10e13d96322c8953595f89cab370e3936
parentf71209b1f21c838a973d858d9f6f76cd39227733
md-bitmap: set BITMAP_WRITE_ERROR in write_sb_page

Set BITMAP_WRITE_ERROR directly in write_sb_page instead of propagating
the error to the caller and setting it there.

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-2-hch@lst.de
drivers/md/md-bitmap.c