]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
raid5: put the comment of clear_batch_ready to the right place
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Tue, 16 Jun 2020 09:25:51 +0000 (11:25 +0200)
committerSong Liu <songliubraving@fb.com>
Thu, 16 Jul 2020 17:14:04 +0000 (10:14 -0700)
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>
drivers/md/raid5.c

index 29dfd91f5095d7bdbf77077623942dc52ef7a2a2..3519560d35b095151b8b5837dc1e6793e4b6c81a 100644 (file)
@@ -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);