jbd2: remove journal_clean_one_cp_list()
authorZhang Yi <yi.zhang@huawei.com>
Tue, 6 Jun 2023 13:59:25 +0000 (21:59 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 11 Jul 2023 03:09:21 +0000 (23:09 -0400)
commitb98dba273a0e47dbfade89c9af73c5b012a4eabb
treed828c991edcab8643112c5288aa47b6b6c484ecf
parentbe22255360f80d3af789daad00025171a65424a5
jbd2: remove journal_clean_one_cp_list()

journal_clean_one_cp_list() and journal_shrink_one_cp_list() are almost
the same, so merge them into journal_shrink_one_cp_list(), remove the
nr_to_scan parameter, always scan and try to free the whole checkpoint
list.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230606135928.434610-4-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/checkpoint.c
include/trace/events/jbd2.h