mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
md/raid5: Cleanup prototype of raid5_get_active_stripe()
Drop the three bools in the prototype of raid5_get_active_stripe() and replace them with a flags parameter. At the same time, drop the distinction with __raid5_get_active_stripe(). Suggested-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Song Liu <song@kernel.org>
This commit is contained in:
committed by
Song Liu
parent
9892fa993f
commit
2f2d51efd8
@@ -1923,7 +1923,8 @@ r5c_recovery_alloc_stripe(
|
||||
{
|
||||
struct stripe_head *sh;
|
||||
|
||||
sh = raid5_get_active_stripe(conf, stripe_sect, 0, noblock, 0);
|
||||
sh = raid5_get_active_stripe(conf, NULL, stripe_sect,
|
||||
noblock ? R5_GAS_NOBLOCK : 0);
|
||||
if (!sh)
|
||||
return NULL; /* no more stripe available */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user