summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2017-07-14 04:14:44 -0400
committerShaohua Li <shli@fb.com>2017-07-21 15:47:20 -0400
commitbe453e7761d0e72d8a1b2fcfde6d1a7e53881190 (patch)
tree4d279fad43fde03e4c7eafb3225e440088ac16ef /drivers/md/raid10.c
parentfb0eb5df09307603b21845af1d143cc910154593 (diff)
md: raid1-10: move raid1/raid10 common code into raid1-10.c
No function change, just move 'struct resync_pages' and related helpers into raid1-10.c Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 9952721e1cde..e2617d0f37dc 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -113,15 +113,6 @@ static void end_reshape(struct r10conf *conf);
113#include "raid1-10.c" 113#include "raid1-10.c"
114 114
115/* 115/*
116 * 'strct resync_pages' stores actual pages used for doing the resync
117 * IO, and it is per-bio, so make .bi_private points to it.
118 */
119static inline struct resync_pages *get_resync_pages(struct bio *bio)
120{
121 return bio->bi_private;
122}
123
124/*
125 * for resync bio, r10bio pointer can be retrieved from the per-bio 116 * for resync bio, r10bio pointer can be retrieved from the per-bio
126 * 'struct resync_pages'. 117 * 'struct resync_pages'.
127 */ 118 */