jbd2: simplify journal_clean_one_cp_list()
authorZhang Yi <yi.zhang@huawei.com>
Thu, 10 Jun 2021 11:24:38 +0000 (19:24 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 24 Jun 2021 14:55:39 +0000 (10:55 -0400)
commitdbf2bab7935b65689f3b39178cf87374f0334ead
tree1975c64304f91218aeb3f68bb9a76496e5288238
parent4ba3fcdde7e36af93610ceb3cc38365b14539865
jbd2: simplify journal_clean_one_cp_list()

Now that __try_to_free_cp_buf() remove checkpointed buffer or transaction
when the buffer is not 'busy', which is only called by
journal_clean_one_cp_list(). This patch simplify this function by remove
__try_to_free_cp_buf() and invoke __cp_buffer_busy() directly.

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