[PATCH 1/1] md/raid10: Change the return type of raid10_handle_discard to int

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now the return type of raid10_handle_discard is bool. This is wrong.
Change the return type to int.

Reported-by: kernel test robot <lkp@xxxxxxxxx>
fixes: 8f694215ae4c (md/raid10: improve raid10 discard request)
Signed-off-by: Xiao Ni <xni@xxxxxxxxxx>
---
 drivers/md/raid10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 524344c..6401e6a 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -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;
-- 
2.7.5




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux