minix: don't flush page immediately for DIRSYNC directories
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Jan 2023 17:30:24 +0000 (18:30 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Jan 2023 00:26:42 +0000 (19:26 -0500)
commitf556e776b14ae4f853147705603d263bfa20ecd1
tree9384982c1fd99dff1ad0cd24baa511939032fffe
parent2d1a9d599b3ed9b9c58f64b8b71b5b9d770ceacf
minix: 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/minix/dir.c