]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
md/raid5: move comment of fetch_block to right location
authorSong Liu <songliubraving@fb.com>
Fri, 13 Jan 2017 01:22:42 +0000 (17:22 -0800)
committerShaohua Li <shli@fb.com>
Tue, 24 Jan 2017 19:20:14 +0000 (11:20 -0800)
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c

index 7780ae44f3559f50c39e93ea7a8b887bb9b0144f..13d76767c2cf74edd6ff28dd10291aeed95f47be 100644 (file)
@@ -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)
 {