Skip to content
Commit 5fda50e2 authored by Zhang Yi's avatar Zhang Yi Committed by Greg Kroah-Hartman
Browse files

jbd2: remove journal_clean_one_cp_list()

[ Upstream commit b98dba27

 ]

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: default avatarZhang Yi <yi.zhang@huawei.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230606135928.434610-4-yi.zhang@huaweicloud.com
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Stable-dep-of: 46f881b5

 ("jbd2: fix a race when checking checkpoint buffer busy")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8168c96c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment