]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: improve comments about freeing data buffers whose page mapping is NULL
authorzhangyi (F) <yi.zhang@huawei.com>
Mon, 17 Feb 2020 11:27:06 +0000 (19:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 07:04:52 +0000 (09:04 +0200)
commitcbfac768797c3d31f73f79c8f492073d5a5b0a40
treede41170bd9bdab344caffa985704a06236780b33
parent2e5839100aa83e60b54f665673e0c2691a830e05
jbd2: improve comments about freeing data buffers whose page mapping is NULL

commit 5c5e9f616c6fa0f41014d922473e8710eb94cffe upstream.

Improve comments in jbd2_journal_commit_transaction() to describe why
we don't need to clear the buffer_mapped bit for freeing file mapping
buffers whose page mapping is NULL.

Link: https://lore.kernel.org/r/20200217112706.20085-1-yi.zhang@huawei.com
Fixes: d43a2419e505 ("jbd2: do not clear the BH_Mapped flag when forgetting a metadata buffer")
Suggested-by: Jan Kara <jack@suse.cz>
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jbd2/commit.c