summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2017-01-12 17:22:42 -0800
committerShaohua Li <shli@fb.com>2017-01-24 11:20:14 -0800
commitba02684daf7fb4a827580f909b7c7db61c05ae7d (patch)
tree98bbdec3b0c5fe8d80e9d4a0f1fae5045e72b1c6 /drivers/md
parent86aa1397ddfde563b3692adadb8b8e32e97b4e5e (diff)
downloadlinux-ba02684daf7fb4a827580f909b7c7db61c05ae7d.tar.bz2
md/raid5: move comment of fetch_block to right location
Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid5.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 7780ae44f355..13d76767c2cf 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -3312,13 +3312,6 @@ static int want_replace(struct stripe_head *sh, int disk_idx)
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,
int disk_idx, int disks)
{
@@ -3409,6 +3402,12 @@ static int need_this_block(struct stripe_head *sh, struct stripe_head_state *s,
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,
int disk_idx, int disks)
{