在 2025/06/24 9:55, Wang Jinchao 写道:
The struct pool_info was originally introduced mainly to support reshape operations, serving as a parameter for mempool_init() when raid_disks changes. Now that mempool_create_kmalloc_pool() is sufficient for this purpose, struct pool_info and its related code are no longer needed. Remove struct pool_info and all associated code. Signed-off-by: Wang Jinchao<wangjinchao600@xxxxxxxxx> --- drivers/md/raid1.c | 49 +++++++++++++--------------------------------- drivers/md/raid1.h | 20 ------------------- 2 files changed, 14 insertions(+), 55 deletions(-)
Nice cleanup. Reviewed-by: Yu Kuai <yukuai3@xxxxxxxxxx>