ext2: Don't flush page immediately for DIRSYNC directories
authorJan Kara <jack@suse.cz>
Wed, 16 Nov 2022 18:08:23 +0000 (19:08 +0100)
committerJan Kara <jack@suse.cz>
Mon, 21 Nov 2022 10:04:57 +0000 (11:04 +0100)
commitbc943f4872a722c5cc64d1cf41daaaf4ec63158e
tree07029f9b96985a7e500728da4234d282e0623372
parentd030bd1a66580b7b198a085e7220c794bcdc2770
ext2: 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.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/dir.c