]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: enable CoW for realtime data
authorDarrick J. Wong <djwong@kernel.org>
Tue, 15 Oct 2024 19:40:25 +0000 (12:40 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:47:10 +0000 (13:47 -0700)
commit632d3e41c410d5a4c8b603d001c3899d4285f0c0
tree27cc2fbf60e73d58009c5e34b67f14d82b22c6a8
parentb295d3850a25b1514af7242faa2b0cb7fa39b671
xfs: enable CoW for realtime data

Update our write paths to support copy on write on the rt volume.  This
works in more or less the same way as it does on the data device, with
the major exception that we never do delalloc on the rt volume.

Because we consider unwritten CoW fork staging extents to be incore
quota reservation, we update xfs_quota_reserve_blkres to support this
case.  Though xfs doesn't allow rt and quota together, the change is
trivial and we shouldn't leave a logic bomb here.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_reflink.c