OSDN Git Service

ext4: Convert data=journal writeback to use ext4_writepages()
authorJan Kara <jack@suse.cz>
Tue, 28 Feb 2023 05:13:19 +0000 (00:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 23 Mar 2023 14:06:08 +0000 (10:06 -0400)
commit3f079114bf522f27f3680238b6429f3dd45535b6
treeea326c3e11dd0aba12cf59590c9b3b8e4e527808
parentd8be7607de039e5a477b0a5c63959d81ac052c3b
ext4: Convert data=journal writeback to use ext4_writepages()

Add support for writeback of journalled data directly into
ext4_writepages() instead of offloading it to write_cache_pages(). This
actually significantly simplifies the code and reduces code duplication.
For checkpointing of committed data we can use ext4_writepages()
rightaway the same way as writeback of ordered data uses it on
transaction commit. For journalling of dirty mapped pages, we need to
add a special case to mpage_prepare_extent_to_map() to add all page
buffers to the journal.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20230228051319.4085470-8-tytso@mit.edu
fs/ext4/inode.c
include/trace/events/ext4.h