OSDN Git Service

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)
commita7234234d0d6373d0510582ab632efbf73243403
treeff7bc74918e852addc6769ff9a4f0043b021b787
parent513e2faa0138462ce014e1b0e226ca45c83bc6c1
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