summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_file.h
AgeCommit message (Collapse)AuthorFilesLines
2024-04-16xfs: create a new helper to return a file's allocation unitDarrick J. Wong1-0/+3
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>
2024-04-16xfs: declare xfs_file.c symbols in xfs_file.hDarrick J. Wong1-0/+12
Move the two public symbols in xfs_file.c to xfs_file.h. We're about to add more public symbols in that source file, so let's finally create the header file. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>