Re: [PATCH v3] xfs: use file target for post-log fsync fallback flush

From: Carlos Maiolino

Date: Mon Aug 10 2026 - 07:56:18 EST


On Thu, 30 Jul 2026 16:42:36 +0800, Hongling Zeng wrote:
> xfs_file_fsync() has a fallback flush for the case where the log force
> was a no-op, for example fdatasync/O_DSYNC writes that do not require
> metadata updates. The current fallback path is expressed in terms of the
> main data device and explicitly excludes realtime inodes.
>
> Realtime files with a separate realtime device are flushed before the log
> force, because their data must reach stable storage before the log commit.
> For the internal realtime device used by the zoned allocator, writes are
> out-of-place and update inode and bmap metadata from I/O completion, so
> the overwrite-without-metadata-update case does not apply in the same way.
>
> [...]

Applied to for-next, thanks!

[1/1] xfs: use file target for post-log fsync fallback flush
commit: a94e648f03cf4e0def8ab3c74a1f9fe140720dd4

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>