]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: Move dropping of jh reference out of un/re-filing functions
authorJan Kara <jack@suse.cz>
Fri, 9 Aug 2019 12:42:29 +0000 (14:42 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 21 Oct 2019 13:16:46 +0000 (09:16 -0400)
commitc9cf9a8658187849aa49072489c856985e7c1025
tree2632ebfe93f64f437f54899822dfad86e1c1bf97
parent8bcb9d2292b4a575b6021358aa5da19268fe4d4d
jbd2: Move dropping of jh reference out of un/re-filing functions

__jbd2_journal_unfile_buffer() and __jbd2_journal_refile_buffer() drop
transaction's jh reference when they remove jh from a transaction. This
will be however inconvenient once we move state lock into journal_head
itself as we still need to unlock it and we'd need to grab jh reference
just for that. Move dropping of jh reference out of these functions into
the few callers.

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