diff options
author | Ming Lei <ming.lei@redhat.com> | 2017-07-14 10:14:44 +0200 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-07-21 21:47:20 +0200 |
commit | be453e7761d0e72d8a1b2fcfde6d1a7e53881190 (patch) | |
tree | 4d279fad43fde03e4c7eafb3225e440088ac16ef /drivers/md/raid1.c | |
parent | md: raid1/raid10: initialize bvec table via bio_add_page() (diff) | |
download | linux-be453e7761d0e72d8a1b2fcfde6d1a7e53881190.tar.xz linux-be453e7761d0e72d8a1b2fcfde6d1a7e53881190.zip |
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/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index fe86ab18961b..8387eb1540cd 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -84,15 +84,6 @@ static void lower_barrier(struct r1conf *conf, sector_t sector_nr); #include "raid1-10.c" /* - * 'strct resync_pages' stores actual pages used for doing the resync - * IO, and it is per-bio, so make .bi_private points to it. - */ -static inline struct resync_pages *get_resync_pages(struct bio *bio) -{ - return bio->bi_private; -} - -/* * for resync bio, r1bio pointer can be retrieved from the per-bio * 'struct resync_pages'. */ |