]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: allow block allocator to take an alignment hint
authorJohn Garry <john.g.garry@oracle.com>
Tue, 1 Jul 2025 17:45:12 +0000 (10:45 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 15 Jul 2025 05:12:03 +0000 (22:12 -0700)
commit5049ea2e832a0a1827edd7b8c32c4310cd5275e7
treef8c4d4a5ecc99a3e29cbdb424ebcbf4e67761d39
parent1705e1fabf772c242f8db1a2d4a43e1afe1d0fa2
xfs: allow block allocator to take an alignment hint

Source kernel commit: 6baf4cc47a741024d37e6149d5d035d3fc9ed1fe

Add a BMAPI flag to provide a hint to the block allocator to align extents
according to the extszhint.

This will be useful for atomic writes to ensure that we are not being
allocated extents which are not suitable (for atomic writes).

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: John Garry <john.g.garry@oracle.com>
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h