]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
jbd2: move the clearing of b_modified flag to the journal_unmap_buffer()
authorzhangyi (F) <yi.zhang@huawei.com>
Tue, 18 Feb 2020 10:59:29 +0000 (18:59 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 13 Mar 2020 04:31:00 +0000 (00:31 -0400)
commitf5f0568d5c4f9f50d1b51a9c4e2245e22a4afcc9
treeb6e09beaecd8fc4a67915d5b9a49689f1a82665c
parentf3e4d8ef4e251c4d1d32139d76334ace866a2c03
jbd2: move the clearing of b_modified flag to the journal_unmap_buffer()

BugLink: https://bugs.launchpad.net/bugs/1867194
[ Upstream commit 6a66a7ded12baa6ebbb2e3e82f8cb91382814839 ]

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: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/jbd2/commit.c
fs/jbd2/transaction.c