OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 18:51:59 +0000 (19:51 +0100)
commit056c7c22fcda495f38dc7fa08451e65dc9ec461d
treebd45e7518d116d38accde89d4773766d19c73571
parent32865d65c4d232033f73e75bd9a003233df2b066
jbd2: move the clearing of b_modified flag to the journal_unmap_buffer()

[ 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>
fs/jbd2/commit.c
fs/jbd2/transaction.c