ext4: Keep pages with journalled data dirty
authorJan Kara <jack@suse.cz>
Wed, 29 Mar 2023 15:49:34 +0000 (17:49 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 14 Apr 2023 23:44:00 +0000 (19:44 -0400)
commit265e72efa99fcc0959f8d33d346a7e0f2e3fe201
treeab248afbffd0fd0287710360fc49afe173405d40
parentd84c9ebdac1e39bc7b036c0c829ee8c1956edabc
ext4: Keep pages with journalled data dirty

Currently we clear page dirty bit when we checkpoint some buffers from a
page with journalled data or when we perform delayed dirtying of a page
in ext4_writepages(). In a quest to simplify handling of journalled data
we want to keep page dirty as long as it has either buffers to
checkpoint or journalled dirty data. So make sure to keep page dirty in
ext4_writepages() if it still has journalled data attached to it.

Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230329154950.19720-3-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c
fs/ext4/page-io.c