OSDN Git Service

md/raid5: resize stripe_head when reshape array
authorYufen Yu <yuyufen@huawei.com>
Thu, 20 Aug 2020 13:22:13 +0000 (09:22 -0400)
committerSong Liu <songliubraving@fb.com>
Thu, 24 Sep 2020 23:44:45 +0000 (16:44 -0700)
commitf16acaf328c5615fdaea74f9bd0b4019544532d6
treebb3aafd61bba64753865924e939cb851911dd9e8
parent046169f048cdea84fd327469239e2dfa317981b5
md/raid5: resize stripe_head when reshape array

When reshape array, we try to reuse shared pages of old stripe_head,
and allocate more for the new one if needed.

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid5.c