]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: move the xfs_is_always_cow_inode check into xfs_alloc_file_space
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Aug 2024 06:50:49 +0000 (08:50 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 28 Aug 2024 14:53:58 +0000 (16:53 +0200)
commit72f4d525709b6450d181fcfcc296d879f3d0b249
tree7158940d02ceac706755e3deb5f8aad2151974da
parent1df1d3b2dcaa8a4ff736bf6351ca1a15d924a40f
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>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_file.c