diff options
author | Jan Kara <jack@suse.cz> | 2024-06-24 19:01:20 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2024-07-08 23:59:37 -0400 |
commit | 1cf5b024a3ffa479ed14e520f81549fce037f322 (patch) | |
tree | 7fef5d7f7b15e4f8ff126a8df419b5f8cfd3f5ec /fs/jbd2 | |
parent | 27ba5b67312a944576addc4df44ac3b709aabede (diff) | |
download | linux-stable-1cf5b024a3ffa479ed14e520f81549fce037f322.tar.gz linux-stable-1cf5b024a3ffa479ed14e520f81549fce037f322.tar.bz2 linux-stable-1cf5b024a3ffa479ed14e520f81549fce037f322.zip |
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>
Diffstat (limited to 'fs/jbd2')
-rw-r--r-- | fs/jbd2/journal.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 2ae861abf770..25d373fac2f2 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -1617,7 +1617,6 @@ static journal_t *journal_init_common(struct block_device *bdev, journal->j_shrinker->scan_objects = jbd2_journal_shrink_scan; journal->j_shrinker->count_objects = jbd2_journal_shrink_count; - journal->j_shrinker->batch = journal->j_max_transaction_buffers; journal->j_shrinker->private_data = journal; shrinker_register(journal->j_shrinker); |