aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/md
diff options
context:
space:
mode:
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>2020-06-16 11:25:51 +0200
committerSong Liu <songliubraving@fb.com>2020-07-16 10:14:04 -0700
commitcb9902db3827135bfd6ae70bcb65b653418bb775 (patch)
tree7d73e97306ff95286feeb493f97f147497ab76e7 /drivers/md
parentraid5: call clear_batch_ready before set STRIPE_ACTIVE (diff)
downloadwireguard-linux-cb9902db3827135bfd6ae70bcb65b653418bb775.tar.xz
wireguard-linux-cb9902db3827135bfd6ae70bcb65b653418bb775.zip
raid5: put the comment of clear_batch_ready to the right place
To make people understand the function well, let's put the comment to the right place. Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com> Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 29dfd91f5095..3519560d35b0 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -4573,12 +4573,12 @@ static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s)
rcu_read_unlock();
}
+/*
+ * Return '1' if this is a member of batch, or '0' if it is a lone stripe or
+ * a head which can now be handled.
+ */
static int clear_batch_ready(struct stripe_head *sh)
{
- /* Return '1' if this is a member of batch, or
- * '0' if it is a lone stripe or a head which can now be
- * handled.
- */
struct stripe_head *tmp;
if (!test_and_clear_bit(STRIPE_BATCH_READY, &sh->state))
return (sh->batch_head && sh->batch_head != sh);