]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: enable CoW for realtime data
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:20:59 +0000 (16:20 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:13 +0000 (13:06 -0800)
commit26e97d9b4b7601bc29535b9e9edc8f8aa5dae8d4
treea79e8061ef36090dab573056544f77d28334f134
parent3639c63d4643f1949e4c71baa8c8d02e63d184b1
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_reflink.c