OSDN Git Service

ext4: Move page unlocking out of mpage_submit_page()
authorJan Kara <jack@suse.cz>
Tue, 28 Feb 2023 05:13:17 +0000 (00:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 23 Mar 2023 14:06:07 +0000 (10:06 -0400)
commiteaf2ca10ca4ba450f8e514cb8bfc9149660b57f6
tree59fef0e12b7499b759187d95ab90b183f1154df2
parentf1496362e9d7b37fe6b8983086c1548a601b5594
ext4: Move page unlocking out of mpage_submit_page()

Move page unlocking during page writeback out of mpage_submit_page()
into the callers. This will allow writeback in data=journal mode to keep
the page locked for a bit longer. Since page unlocking it tightly
connected to increment of mpd->first_page (as that determines cleanup of
locked but unwritten pages), move page unlocking as well as
mpd->first_page handling into a helper function.

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-6-tytso@mit.edu
fs/ext4/inode.c