Commit ab382539 authored by Jan Kara's avatar Jan Kara Committed by Theodore Ts'o

ext4: Update comment in mpage_prepare_extent_to_map()

Since filemap_write_and_wait() is now enough to get journalled data to
final location update the comment in mpage_prepare_extent_to_map().
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230329154950.19720-12-jack@suse.czSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 951cafa6
...@@ -2496,11 +2496,10 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd) ...@@ -2496,11 +2496,10 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd)
* Just submit the page. For data=journal mode we * Just submit the page. For data=journal mode we
* first handle writeout of the page for checkpoint and * first handle writeout of the page for checkpoint and
* only after that handle delayed page dirtying. This * only after that handle delayed page dirtying. This
* is crutial so that forcing a transaction commit and * makes sure current data is checkpointed to the final
* then calling filemap_write_and_wait() guarantees * location before possibly journalling it again which
* current state of data is in its final location. Such * is desirable when the page is frequently dirtied
* sequence is used for example by insert/collapse * through a pin.
* range operations before discarding the page cache.
*/ */
if (!mpd->can_map) { if (!mpd->can_map) {
WARN_ON_ONCE(sb->s_writers.frozen == WARN_ON_ONCE(sb->s_writers.frozen ==
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment