""[…] This blog post discusses atomic commit of file contents [in #XFS #Linux 6.13+]. In this context, the difference between “commit” and “exchange” is that the commit system call exchanges the two files’ contents only if the target file has not been modified since a past point in time.
[…]
Conclusion
As you have seen, it is now possible to commit a collection of arbitrary file updates to a file if that file has not been updated, and expect that readers see either the old version or the new version.""
https://blogs.oracle.com/linux/post/xfs-atomic-file-content-commit-in-linux-613