md: move funcs from pers->resize to update_size
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 24 Feb 2017 03:15:23 +0000 (11:15 +0800)
committerShaohua Li <shli@fb.com>
Thu, 9 Mar 2017 17:02:18 +0000 (09:02 -0800)
commitc94836342192b05d599d6aa3397f732f7a238689
tree17c6407285ffbc1e1c75302b66338b84bb592831
parent75df023f4f2188c21181996e28234fef9351ef45
md: move funcs from pers->resize to update_size

raid1_resize and raid5_resize should also check the
mddev->queue if run underneath dm-raid.

And both set_capacity and revalidate_disk are used in
pers->resize such as raid1, raid10 and raid5. So
move them from personality file to common code.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c