jbd2: move the clearing of b_modified flag to the journal_unmap_buffer()

commit 6a66a7ded1 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
zhangyi (F) 2020-02-13 14:38:20 +08:00 • committed by Greg Kroah-Hartman
commit 2ee9e5dc45
2 changed files with 21 additions and 32 deletions