md/raid10: Change the return type of raid10_handle_discard to int
PATCH 1/1 md/raid10: Change the return type of raid10_handle_discard to int
Now the return type of raid10_handle_discard is bool. This is wrong. Change the return type to int.
Reported-by kernel test robot <[email protected]>
Fixes 8f694215ae4c (md/raid10: improve raid10 discard request)
Signed-off-by Xiao Ni <[email protected]>
--- drivers/md/raid10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid10.c +1 -1
@@ -1591,7 +1591,7 @@ static void raid10_end_discard_request(struct bio *bio)* 2st, if the discard bio spans reshape progress, we use the old way to * handle discard bio */ -static bool raid10_handle_discard (struct mddev *mddev,struct bio *bio) +static int raid10_handle_discard (struct mddev *mddev,struct bio *bio) {struct r10conf *conf = mddev->private;struct geom *geo = &conf->geo;
Signature · 1 line
2.7.5
Quoted 7 lines · Xiao Ni
Now the return type of
raid10_handle_discardis bool. This is wrong. Change the return type to int.Reported-by kernel test robot <[email protected]>Fixes 8f694215ae4c (md/raid10: improve raid10 discard request)Signed-off-by Xiao Ni <[email protected]>
Applied to md-next. Thanks for the fix!