]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: Make credit checking more strict
authorJan Kara <jack@suse.cz>
Tue, 5 Nov 2019 16:44:28 +0000 (17:44 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Nov 2019 21:00:49 +0000 (16:00 -0500)
commit98ae62497f7cceb17d643a603dc0886b96ab4b43
tree1730aa17f19012147cdd7839e641133f9ee32de7
parent387eb57bcab1a3e29a48cd0b514e613972d1bd00
jbd2: Make credit checking more strict

Make checking of available credits in jbd2_journal_dirty_metadata() more
strict. There should be always enough credits in the handle to write all
potential revoke descriptors. Also we warn in case there are not enough
credits since this is a bug in the filesystem.

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