fat: Replace fat_sync_inode() with sync_inode_metadata()

Use generic sync_inode_metadata() instead of fat_sync_inode() for
persisting inode metadata changes for DIRSYNC inodes. This slightly
simplifies code and also addresses a theoretical race where
fat_sync_inode() could return before all metadata buffers associated
with the inode were properly written out when racing with fsync(2).

Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260727104923.3828017-39-jack@suse.cz
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Jan Kara 2026-07-27 12:49:37 +02:00 • committed by Christian Brauner
commit e668e06681
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
7 changed files with 34 additions and 50 deletions