From: Xiao Ni <xni@redhat.com>
To: linux-raid@vger.kernel.org, songliubraving@fb.com
Cc: lkp@intel.com, ncroxon@redhat.com
Subject: [PATCH 1/1] md/raid10: Change the return type of raid10_handle_discard to int
Date: Tue, 22 Sep 2020 13:58:02 +0800 [thread overview]
Message-ID: <1600754282-3982-1-git-send-email-xni@redhat.com> (raw)
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@intel.com>
fixes: 8f694215ae4c (md/raid10: improve raid10 discard request)
Signed-off-by: Xiao Ni <xni@redhat.com>
---
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
next reply other threads:[~2020-09-22 5:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-22 5:58 Xiao Ni [this message]
2020-09-24 3:26 ` [PATCH 1/1] md/raid10: Change the return type of raid10_handle_discard to int Song Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1600754282-3982-1-git-send-email-xni@redhat.com \
--to=xni@redhat.com \
--cc=linux-raid@vger.kernel.org \
--cc=lkp@intel.com \
--cc=ncroxon@redhat.com \
--cc=songliubraving@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).