]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: port xfs_ioc_start_commit to multigrain timestamps
authorDarrick J. Wong <djwong@kernel.org>
Mon, 2 Dec 2024 18:58:11 +0000 (10:58 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 13 Dec 2024 01:45:13 +0000 (17:45 -0800)
commit12f2930f5f91bc0d67794c69d1961098c7c72040
treedf4c8d6cad71f5de849960f4a57ffffcfe3dc4b7
parent7f8b718c58783f3ff0810b39e2f62f50ba2549f6
xfs: port xfs_ioc_start_commit to multigrain timestamps

Take advantage of the multigrain timestamp APIs to ensure that nobody
can sneak in and write things to a file between starting a file update
operation and committing the results.  This should have been part of the
multigrain timestamp merge, but I forgot to fling it at jlayton when he
resubmitted the patchset due to developer bandwidth problems.

Cc: <stable@vger.kernel.org> # v6.13-rc1
Fixes: 4e40eff0b5737c ("fs: add infrastructure for multigrain timestamps")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
fs/xfs/xfs_exchrange.c