]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: realtime rmap btree transaction reservations
authorDarrick J. Wong <djwong@kernel.org>
Tue, 15 Oct 2024 19:39:47 +0000 (12:39 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:36:22 +0000 (13:36 -0800)
commite799afd1f88ce3176acad99bd833ffdd04eb3b83
tree8f960a32245a16cf540a1211806f1af1c84e1f9a
parentdf98911efee7afb53809d9ad2d80ff4f90d41ab4
xfs: realtime rmap btree transaction reservations

Make sure that there's enough log reservation to handle mapping
and unmapping realtime extents.  We have to reserve enough space
to handle a split in the rtrmapbt to add the record and a second
split in the regular rmapbt to record the rtrmapbt split.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_exchmaps.c
fs/xfs/libxfs/xfs_trans_resv.c
fs/xfs/libxfs/xfs_trans_space.h