diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2022-08-11 20:14:16 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2022-09-22 10:05:04 +0300 |
commit | 2f2d51efd83225c1eb0d7771ddfe9fddd5ccd378 (patch) | |
tree | 64efad489cb30dc19c78ebd8c9f0c4d5ec8a9635 /drivers/md/raid5-cache.c | |
parent | 9892fa993f8a8e716f39266b24d6218d8333ff89 (diff) | |
download | linux-2f2d51efd83225c1eb0d7771ddfe9fddd5ccd378.tar.xz |
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>
Diffstat (limited to 'drivers/md/raid5-cache.c')
-rw-r--r-- | drivers/md/raid5-cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c index 058d82e7fa13..8e3ca60b5a58 100644 --- a/drivers/md/raid5-cache.c +++ b/drivers/md/raid5-cache.c @@ -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 */ |