Skip to contentSkip to conversation

md/raid5: move handle_stripe() comment to correct location

PATCH Applied Chen Cheng 2 participants 3 messages Mar 4 – Mar 22 MD RAID

lore
Share & tools
lore

Chen Cheng

author
#0 lore raw

PATCH 2/2 md/raid5: move handle_stripe() comment to correct location

Move the handle_stripe() documentation comment from above analyse_stripe() to directly above handle_stripe() where it belongs.

---
 drivers/md/raid5.c | 26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)
drivers/md/raid5.c +12 -14
index a8e8d431071b..48504b0e496b 100644
@@ -4594,20 +4594,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;
@@ -4901,6 +4887,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;
Signature · 1 line
2.51.0
Reviewed-by on v1 2/2
#1 lore raw
Quoted 7 lines · Chen Cheng

Move the handle_stripe() documentation comment from above analyse_stripe() to directly above handle_stripe() where it belongs.

---
  drivers/md/raid5.c | 26 ++++++++++++--------------
  1 file changed, 12 insertions(+), 14 deletions(-)
Signature · 2 lines
Thansk,
Kuai
Applied
#2 lore raw
In reply to Chen Cheng
Quoted 7 lines · Chen Cheng

Move the handle_stripe() documentation comment from above analyse_stripe() to directly above handle_stripe() where it belongs.

---
  drivers/md/raid5.c | 26 ++++++++++++--------------
  1 file changed, 12 insertions(+), 14 deletions(-)

Applied

Signature · 2 lines
Thansk,
Kuai