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