Skip to contentSkip to conversation

md/raid10: Change the return type of raid10_handle_discard to int

PATCH Applied Xiao Ni 2 participants 2 messages Sep 22, 2020 – Sep 24, 2020 MD RAID

lore
Share & tools
lore

Xiao Ni

author
#0 lore raw

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.

Fixes 8f694215ae4c (md/raid10: improve raid10 discard request)
---
 drivers/md/raid10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid10.c +1 -1
index 524344c..6401e6a 100644
@@ -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