diff options
author | Jan Kara <[email protected]> | 2024-06-24 19:01:18 +0200 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2024-07-08 23:59:37 -0400 |
commit | e3a00a23781c1f2fcda98a7aecaac515558e7a35 (patch) | |
tree | ab0886700f3f7bb50f266e4b0077f759cb9b57c5 /lib/netdev-notifier-error-inject.c | |
parent | 4aa99c71e42ad60178c1154ec24e3df9c684fb67 (diff) |
jbd2: precompute number of transaction descriptor blocks
Instead of computing the number of descriptor blocks a transaction can
have each time we need it (which is currently when starting each
transaction but will become more frequent later) precompute the number
once during journal initialization together with maximum transaction
size. We perform the precomputation whenever journal feature set is
updated similarly as for computation of
journal->j_revoke_records_per_block.
CC: [email protected]
Signed-off-by: Jan Kara <[email protected]>
Reviewed-by: Zhang Yi <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions