]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: Completely fill journal descriptor blocks
authorJan Kara <jack@suse.cz>
Tue, 5 Nov 2019 16:44:09 +0000 (17:44 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Nov 2019 17:13:25 +0000 (12:13 -0500)
commit6359b0b8cfe913d1793bf3e7b97fbe15112a8603
tree049cad17c0b0b24520d734501ad6a1c4a2b05935
parent6c0ea5f0b97e5ade1b13a89b0c07d116253eab8f
jbd2: Completely fill journal descriptor blocks

With 32-bit block numbers, we don't allocate the array for journal
buffer heads large enough for corresponding descriptor tags to fill the
descriptor block. Thus we end up writing out half-full descriptor blocks
to the journal unnecessarily growing the transaction. Fix the logic to
allocate the array large enough.

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