]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8972222139eca8520f47e0a235dbaeba3dd9f291
tree55c1cdee9de02c6464af879e02ac3c1cf0783792
parentaac02e1983b6c0c6dd3fc134f863f88e14936ff7
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