Re: [PATCH v2 09/11] xfs: Commit CoW-based atomic writes atomically

From: John Garry
Date: Tue Feb 25 2025 - 13:10:12 EST


On 25/02/2025 17:50, Darrick J. Wong wrote:
Can you please check this versus what you suggested in
https://lore.kernel.org/linux- xfs/20250206215014.GX21808@frogsfrogsfrogs/#t
Ah, yeah, that ^^ is correct. This needs a better comment then:

/*
* Each remapping operation could cause a btree split, so in
* the worst case that's one for each block.
*/
resblks = (end_fsb - offset_fsb) *
XFS_NEXTENTADD_SPACE_RES(mp, 1, XFS_DATA_FORK);

ok, fine.

Cheers