]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
md/raid5: move handle_stripe() comment to correct location
authorChen Cheng <chencheng@fnnas.com>
Wed, 4 Mar 2026 11:10:01 +0000 (19:10 +0800)
committerYu Kuai <yukuai@fnnas.com>
Sun, 22 Mar 2026 18:15:11 +0000 (02:15 +0800)
Move the handle_stripe() documentation comment from above
analyse_stripe() to directly above handle_stripe() where it belongs.

Signed-off-by: Chen Cheng <chencheng@fnnas.com>
Reviewed-by: Yu Kuai <yukuai@fnnas.com>
Link: https://lore.kernel.org/linux-raid/20260304111001.15767-1-chencheng@fnnas.com/
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
drivers/md/raid5.c

index ddac1be2648f08e60c822702459b9f1426071fa8..1f8360d4cdb774b8ea01051d88e8fc7a9c218e4c 100644 (file)
@@ -4596,20 +4596,6 @@ static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh)
        async_tx_quiesce(&tx);
 }
 
-/*
- * handle_stripe - do things to a stripe.
- *
- * We lock the stripe by setting STRIPE_ACTIVE and then examine the
- * state of various bits to see what needs to be done.
- * Possible results:
- *    return some read requests which now have data
- *    return some write requests which are safely on storage
- *    schedule a read on some buffers
- *    schedule a write of some buffers
- *    return confirmation of parity correctness
- *
- */
-
 static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s)
 {
        struct r5conf *conf = sh->raid_conf;
@@ -4903,6 +4889,18 @@ static void break_stripe_batch_list(struct stripe_head *head_sh,
                set_bit(STRIPE_HANDLE, &head_sh->state);
 }
 
+/*
+ * handle_stripe - do things to a stripe.
+ *
+ * We lock the stripe by setting STRIPE_ACTIVE and then examine the
+ * state of various bits to see what needs to be done.
+ * Possible results:
+ *    return some read requests which now have data
+ *    return some write requests which are safely on storage
+ *    schedule a read on some buffers
+ *    schedule a write of some buffers
+ *    return confirmation of parity correctness
+ */
 static void handle_stripe(struct stripe_head *sh)
 {
        struct stripe_head_state s;