ufs: don't flush page immediately for DIRSYNC directories
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Mar 2023 14:31:23 +0000 (15:31 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 13 Mar 2023 00:00:41 +0000 (20:00 -0400)
commit9e22031a5a6c038089dfd4220012c7fb7f1631af
tree89dbfc849926a56a48ce9f8f14c3229b5f371748
parenteeac8ede17557680855031c6f305ece2378af326
ufs: don't flush page immediately for DIRSYNC directories

We do not need to writeout modified directory blocks immediately when
modifying them while the page is locked. It is enough to do the flush
somewhat later which has the added benefit that inode times can be
flushed as well. It also allows us to stop depending on
write_one_page() function.

Ported from an ext2 patch by Jan Kara.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/dir.c