]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
jbd2: Factor out common parts of stopping and restarting a handle
authorJan Kara <jack@suse.cz>
Tue, 5 Nov 2019 16:44:23 +0000 (17:44 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Nov 2019 21:00:48 +0000 (16:00 -0500)
commitec8b6f600e49dc87a8564807fec4193bf93ee2b5
tree7534ce8dec45adc4437b1f1e4a356e2a3f99ba8a
parent5559b2d81b51de75cb7864bb1fbb82982f7e8fff
jbd2: Factor out common parts of stopping and restarting a handle

jbd2__journal_restart() has quite some code that is common with
jbd2_journal_stop(). Factor this functionality into stop_this_handle()
helper and use it from both functions. Note that this also drops
t_handle_lock protection from jbd2__journal_restart() as
jbd2_journal_stop() does the same thing without it.

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