]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: Fine tune estimate of necessary descriptor blocks
authorJan Kara <jack@suse.cz>
Tue, 5 Nov 2019 16:44:31 +0000 (17:44 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Nov 2019 21:00:49 +0000 (16:00 -0500)
commit009068eb87a88daf92a89e674a18c660a56fffd7
tree72b522a833ad1ae040fe6cf42a0c1153a55cdb42
parentcedb32aa75ff24ae7019a6fd5bf0d26c9e1bc52e
jbd2: Fine tune estimate of necessary descriptor blocks

Currently we reserve j_max_transaction_buffers / 32 for transaction
descriptor blocks. Now that revoke descriptors are accounted for
separately this estimate is unnecessarily high and we can actually
compute much tighter estimate. In the common case of 32k journal blocks
and 4k blocksize this actually reduces the amount of reserved descriptor
blocks from 256 to ~25 which allows us to fit more real data into a
transaction.

Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20191105164437.32602-25-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/transaction.c