jbd2: move the clearing of b_modified flag to the journal_unmap_buffer()
authorzhangyi (F) <yi.zhang@huawei.com>
Thu, 13 Feb 2020 06:38:20 +0000 (14:38 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 13 Feb 2020 17:06:17 +0000 (12:06 -0500)
commit6a66a7ded12baa6ebbb2e3e82f8cb91382814839
tree55c1cdee9de02c6464af879e02ac3c1cf0783792
parentaf133ade9a40794a37104ecbcc2827c0ea373a3c
jbd2: move the clearing of b_modified flag to the journal_unmap_buffer()

There is no need to delay the clearing of b_modified flag to the
transaction committing time when unmapping the journalled buffer, so
just move it to the journal_unmap_buffer().

Link: https://lore.kernel.org/r/20200213063821.30455-2-yi.zhang@huawei.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/jbd2/commit.c
fs/jbd2/transaction.c