]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jbd2: remove journal_clean_one_cp_list()
authorZhang Yi <yi.zhang@huawei.com>
Tue, 6 Jun 2023 13:59:25 +0000 (21:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:18:12 +0000 (16:18 +0200)
commit9c31bb2684f8035beca0275349d19d679b679ffb
tree4a565ea409c950e02fa9503a7507e63a4712d70b
parentd91783e6864a1056d6f3b9ee66b073e1a25b9596
jbd2: remove journal_clean_one_cp_list()

[ Upstream commit b98dba273a0e47dbfade89c9af73c5b012a4eabb ]

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>
Stable-dep-of: 46f881b5b175 ("jbd2: fix a race when checking checkpoint buffer busy")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/jbd2/checkpoint.c
include/trace/events/jbd2.h