Patch 1 fixes memleak in jbd2_journal_write_metadata_buffer. Patch 2-6 contain some cleanups to jbd2_journal_write_metadata_buffer(). Patch 7-9 contain some cleanups to kjournald2() All tests in "kvm-xfstest smoke" survive. Please let me konw if more tests should be ran. Thanks. Kemeng Shi (9): jbd2: avoid memleak in jbd2_journal_write_metadata_buffer jbd2: remove unused return info from jbd2_journal_write_metadata_buffer jbd2: remove unnedded "need_copy_out" in jbd2_journal_write_metadata_buffer jbd2: move repeat tag around to remove a repeat check of b_frozen_data jbd2: remove unneeded kmap to do escape in jbd2_journal_write_metadata_buffer jbd2: use bh_in instead of jh2bh(jh_in) to simplify code jbd2: remove dead equality check of j_commit_[sequence/request] in kjournald2 jbd2: remove dead check of JBD2_UNMOUNT in kjournald2 jbd2: remove unnecessary "should_sleep" in kjournald2 fs/jbd2/journal.c | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) -- 2.30.0