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)
committerSong Liu <song@kernel.org>
Sun, 3 Jul 2022 14:55:40 +0000 (07:55 -0700)
commit6ce9728905c2760c5de37b75338ce23ad4b3bd13
treeff6f2877de193df56710ada1eb41f14ab36495e5
parentec877594ad5775c0fed459e15f43907e37fcf1e5
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>
drivers/md/raid5.c