]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20702df7d2539ddd94b5c7641f0a66c06f5f1cb9
tree93fd514e0cbb38eb16c3674577618df92fd39993
parentc48c382d14e24a082c16db26b7ae1784c6493680
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