diff options
| author | Daejun Park <daejun7.park@samsung.com> | 2026-10-29 11:23:06 +0900 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-11-03 15:15:36 +0100 |
| commit | 9cc3b0eda94da41efc4b4ac85b7e6f18cf72cd67 (patch) | |
| tree | 879daea6f0fea3a73dff54d111fdb05d7f69031d /scripts/subarch.include | |
| parent | 199eee7c677d535f5ff5d64a6192803848729aa0 (diff) | |
xfs: make pNFS LAYOUTCOMMIT stable the way fdatasync does
Every LAYOUTCOMMIT commits a synchronous transaction and forces the
log. fdatasync after the same overwrite does not, because timestamps
alone do not set ili_datasync_seq.
Do what fdatasync does. Commit without XFS_TRANS_SYNC, force the log up
to ili_datasync_seq, and flush the data device cache if that wrote no
iclog. Conversions and size changes still force the log. As with
fdatasync, a crash before the next log write can lose the new
timestamps and the change attribute that nfsd derives from the ctime.
Signed-off-by: Daejun Park <daejun7.park@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts/subarch.include')
0 files changed, 0 insertions, 0 deletions
