commit | ee20808d848c87a51e176706d81b95a21747d6cf | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <djwong@kernel.org> | Mon Apr 15 14:54:10 2024 -0700 |
committer | Darrick J. Wong <djwong@kernel.org> | Mon Apr 15 14:54:10 2024 -0700 |
tree | add477fbbb621a637f4b3cd163d6b68ff40dfc64 | |
parent | 00acb28d96746f78389f23a7b5309a917b45c12f [diff] |
xfs: create a new helper to return a file's allocation unit Create a new helper function to calculate the fundamental allocation unit (i.e. the smallest unit of space we can allocate) of a file. Things are going to get hairy with range-exchange on the realtime device, so prepare for this now. Remove the static attribute from xfs_is_falloc_aligned since the next patch will need it. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>