xfs: move the xfs_is_always_cow_inode check into xfs_alloc_file_space

Move the xfs_is_always_cow_inode check from the caller into
xfs_alloc_file_space to prepare for refactoring of xfs_file_fallocate.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240827065123.1762168-6-hch@lst.de
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Christoph Hellwig 2024-08-27 08:50:49 +02:00 • committed by Christian Brauner
commit 72f4d52570
2 changed files with 6 additions and 5 deletions