md/raid5: Move common stripe get code into new find_get_stripe() helper
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 16 Jun 2022 19:19:35 +0000 (13:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:14:40 +0000 (17:14 -0600)
commit1baa1126e0f6d366187f740144947b6cf619b4f2
tree93fd514e0cbb38eb16c3674577618df92fd39993
parent8757fef675d8c34f8b2e2d8322385d5a6b403210
md/raid5: Move common stripe get code into new find_get_stripe() helper

Both uses of find_stripe() require a fairly complicated dance to
increment the reference count. Move this into a common find_get_stripe()
helper.

No functional changes intended.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid5.c