提交 ba02684d 编写于 作者: S Song Liu 提交者: Shaohua Li

md/raid5: move comment of fetch_block to right location

Signed-off-by: NSong Liu <songliubraving@fb.com>
Signed-off-by: NShaohua Li <shli@fb.com>
上级 86aa1397
...@@ -3312,13 +3312,6 @@ static int want_replace(struct stripe_head *sh, int disk_idx) ...@@ -3312,13 +3312,6 @@ static int want_replace(struct stripe_head *sh, int disk_idx)
return rv; return rv;
} }
/* fetch_block - checks the given member device to see if its data needs
* to be read or computed to satisfy a request.
*
* Returns 1 when no more member devices need to be checked, otherwise returns
* 0 to tell the loop in handle_stripe_fill to continue
*/
static int need_this_block(struct stripe_head *sh, struct stripe_head_state *s, static int need_this_block(struct stripe_head *sh, struct stripe_head_state *s,
int disk_idx, int disks) int disk_idx, int disks)
{ {
...@@ -3409,6 +3402,12 @@ static int need_this_block(struct stripe_head *sh, struct stripe_head_state *s, ...@@ -3409,6 +3402,12 @@ static int need_this_block(struct stripe_head *sh, struct stripe_head_state *s,
return 0; return 0;
} }
/* fetch_block - checks the given member device to see if its data needs
* to be read or computed to satisfy a request.
*
* Returns 1 when no more member devices need to be checked, otherwise returns
* 0 to tell the loop in handle_stripe_fill to continue
*/
static int fetch_block(struct stripe_head *sh, struct stripe_head_state *s, static int fetch_block(struct stripe_head *sh, struct stripe_head_state *s,
int disk_idx, int disks) int disk_idx, int disks)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册