OSDN Git Service

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)
commit93108ebb848df8d4948d51db14714a14c4e81111
tree2632ebfe93f64f437f54899822dfad86e1c1bf97
parentd8ede917f5cd472e344be636d62b8e1f10bdae5e
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