Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <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>

authored by

Chen Cheng and committed by
Yu Kuai
81c04126 af5c99b8

+12 -14
+12 -14
drivers/md/raid5.c
··· 4596 4596 async_tx_quiesce(&tx); 4597 4597 } 4598 4598 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 - 4613 4599 static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s) 4614 4600 { 4615 4601 struct r5conf *conf = sh->raid_conf; ··· 4889 4903 set_bit(STRIPE_HANDLE, &head_sh->state); 4890 4904 } 4891 4905 4906 + /* 4907 + * handle_stripe - do things to a stripe. 4908 + * 4909 + * We lock the stripe by setting STRIPE_ACTIVE and then examine the 4910 + * state of various bits to see what needs to be done. 4911 + * Possible results: 4912 + * return some read requests which now have data 4913 + * return some write requests which are safely on storage 4914 + * schedule a read on some buffers 4915 + * schedule a write of some buffers 4916 + * return confirmation of parity correctness 4917 + */ 4892 4918 static void handle_stripe(struct stripe_head *sh) 4893 4919 { 4894 4920 struct stripe_head_state s;