md: raid1: retrieve page from pre-allocated resync page array
authorMing Lei <tom.leiming@gmail.com>
Thu, 16 Mar 2017 16:12:27 +0000 (00:12 +0800)
committerShaohua Li <shli@fb.com>
Fri, 24 Mar 2017 17:41:36 +0000 (10:41 -0700)
commit44cf0f4dc76b5e44e6a9c727be6902434f99a9bd
tree179b270c2f3da836efa5f3d980dfbc3288564b98
parent98d30c5812c343c970b5997369b4f6b197c29b3d
md: raid1: retrieve page from pre-allocated resync page array

Now one page array is allocated for each resync bio, and we can
retrieve page from this table directly.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid1.c