xfs: allow block allocator to take an alignment hint
authorJohn Garry <john.g.garry@oracle.com>
Wed, 7 May 2025 21:18:27 +0000 (14:18 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 7 May 2025 21:25:31 +0000 (14:25 -0700)
commit6baf4cc47a741024d37e6149d5d035d3fc9ed1fe
tree52c9de6ed95c22e61ef4fac27164822d878a1515
parent85bf2dfa3f1287d349fa1f92b673ca67d13c7784
xfs: allow block allocator to take an alignment hint

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>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h