Skip to content

Commit 81c0412

Browse files
chencheng-fnnashailan94
authored andcommitted
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. Signed-off-by: Chen Cheng <[email protected]> Reviewed-by: Yu Kuai <[email protected]> Link: https://lore.kernel.org/linux-raid/[email protected]/ Signed-off-by: Yu Kuai <[email protected]>
1 parent af5c99b commit 81c0412

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

drivers/md/raid5.c

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4596,20 +4596,6 @@ static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh)
45964596
async_tx_quiesce(&tx);
45974597
}
45984598

4599-
/*
4600-
* handle_stripe - do things to a stripe.
4601-
*
4602-
* We lock the stripe by setting STRIPE_ACTIVE and then examine the
4603-
* state of various bits to see what needs to be done.
4604-
* Possible results:
4605-
* return some read requests which now have data
4606-
* return some write requests which are safely on storage
4607-
* schedule a read on some buffers
4608-
* schedule a write of some buffers
4609-
* return confirmation of parity correctness
4610-
*
4611-
*/
4612-
46134599
static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s)
46144600
{
46154601
struct r5conf *conf = sh->raid_conf;
@@ -4903,6 +4889,18 @@ static void break_stripe_batch_list(struct stripe_head *head_sh,
49034889
set_bit(STRIPE_HANDLE, &head_sh->state);
49044890
}
49054891

4892+
/*
4893+
* handle_stripe - do things to a stripe.
4894+
*
4895+
* We lock the stripe by setting STRIPE_ACTIVE and then examine the
4896+
* state of various bits to see what needs to be done.
4897+
* Possible results:
4898+
* return some read requests which now have data
4899+
* return some write requests which are safely on storage
4900+
* schedule a read on some buffers
4901+
* schedule a write of some buffers
4902+
* return confirmation of parity correctness
4903+
*/
49064904
static void handle_stripe(struct stripe_head *sh)
49074905
{
49084906
struct stripe_head_state s;

0 commit comments

Comments
 (0)