jbd2: drop pointless shrinker batch initialization
authorJan Kara <jack@suse.cz>
Mon, 24 Jun 2024 17:01:20 +0000 (19:01 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 9 Jul 2024 03:59:37 +0000 (23:59 -0400)
commit1cf5b024a3ffa479ed14e520f81549fce037f322
tree7fef5d7f7b15e4f8ff126a8df419b5f8cfd3f5ec
parent27ba5b67312a944576addc4df44ac3b709aabede
jbd2: drop pointless shrinker batch initialization

In jbd2_journal_init_common() we set batch size of a shrinker shrinking
checkpointed buffers to journal->j_max_transaction_buffers. But that is
guaranteed to be 0 at that point so we effectively stay with the default
shrinker batch size of 128. It has been like this since introduction of
jbd2 shrinkers so just drop the pointless initialization.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20240624170127.3253-4-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c