jbd2: refactor wait logic for transaction updates into a common function
authorRitesh Harjani <riteshh@linux.ibm.com>
Mon, 17 Jan 2022 12:11:51 +0000 (17:41 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 3 Feb 2022 15:57:44 +0000 (10:57 -0500)
commit4f98186848707f530669238d90e0562d92a78aab
treeb839ee00f3ca636ffeba0f1a9b9a1916c7f825b3
parent3ca40c0d329113a9f76f6aa01abe73d9f16ace9d
jbd2: refactor wait logic for transaction updates into a common function

No functionality change as such in this patch. This only refactors the
common piece of code which waits for t_updates to finish into a common
function named as jbd2_journal_wait_updates(journal_t *)

Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/8c564f70f4b2591171677a2a74fccb22a7b6c3a4.1642416995.git.riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/commit.c
fs/jbd2/transaction.c
include/linux/jbd2.h