]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commita413036791d040e33badcc634453a4d0c0705499
treee975f73d65996deec9fcc1504ae28bd9f2c05e77
parentf2890730f8292831b7741d89a65b9c6834d85ee6
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