]> git.ipfire.org Git - thirdparty/kernel/stable.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:08:00 +0000 (09:08 +0200)
commit2509c5c3914b77b0c14b02628c5b8ba474fdfc36
tree77abf37df501bc5e422343a7ecdd3ebf72136f91
parent35c53e5a03a5d4cefbe7ea23dbbb42ff8a32b143
jbd2: improve comments about freeing data buffers whose page mapping is NULL

commit 780f66e59231fcf882f36c63f287252ee47cc75a 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: c96dceeabf76 ("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