mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-24 11:02:51 +00:00
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> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -662,7 +662,9 @@ xfs_exchmaps_rmapbt_blocks(
|
||||
if (!xfs_has_rmapbt(mp))
|
||||
return 0;
|
||||
if (XFS_IS_REALTIME_INODE(req->ip1))
|
||||
return 0;
|
||||
return howmany_64(req->nr_exchanges,
|
||||
XFS_MAX_CONTIG_RTRMAPS_PER_BLOCK(mp)) *
|
||||
XFS_RTRMAPADD_SPACE_RES(mp);
|
||||
|
||||
return howmany_64(req->nr_exchanges,
|
||||
XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)) *
|
||||
|
||||
Reference in New Issue
Block a user