]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Provide function to handle transaction restarts
authorJan Kara <jack@suse.cz>
Tue, 5 Nov 2019 16:44:16 +0000 (17:44 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Nov 2019 21:00:48 +0000 (16:00 -0500)
commit7ea8b42b4cf12ca0874e5a43b3b8692064df6abd
treee975f73d65996deec9fcc1504ae28bd9f2c05e77
parent08c1dd9f50a900510d394290b5070d43e069d7bb
ext4: Provide function to handle transaction restarts

Provide ext4_journal_ensure_credits_fn() function to ensure transaction
has given amount of credits and call helper function to prepare for
restarting a transaction. This allows to remove some boilerplate code
from various places, add proper error handling for the case where
transaction extension or restart fails, and reduces following changes
needed for proper revoke record reservation tracking.

Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20191105164437.32602-10-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/ext4_jbd2.c
fs/ext4/ext4_jbd2.h
fs/ext4/extents.c
fs/ext4/indirect.c
fs/ext4/inode.c
fs/ext4/migrate.c
fs/ext4/resize.c
fs/ext4/xattr.c