]> git.baikalelectronics.ru Git - kernel.git/commit
md: raid1: simplify r1buf_pool_free()
authorMing Lei <tom.leiming@gmail.com>
Thu, 16 Mar 2017 16:12:25 +0000 (00:12 +0800)
committerShaohua Li <shli@fb.com>
Fri, 24 Mar 2017 17:41:36 +0000 (10:41 -0700)
commit6f2aaf40e7a52dac4f7795d6956bc871668e1116
treeff7bc74918e852addc6769ff9a4f0043b021b787
parentca8fff2b347b8626b97a8cae6243983fc6e06ee4
md: raid1: simplify r1buf_pool_free()

This patch gets each page's reference of each bio for resync,
then r1buf_pool_free() gets simplified a lot.

The same policy has been taken in raid10's buf pool allocation/free
too.

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