xfs: call xfs_flush_unmap_range from xfs_free_file_space
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Aug 2024 06:50:48 +0000 (08:50 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 28 Aug 2024 14:53:58 +0000 (16:53 +0200)
commit1df1d3b2dcaa8a4ff736bf6351ca1a15d924a40f
treef409a4371ea5155f5eec84adb51efa19da9c2b56
parent57413d8e172c10c90fbd91f98d0f7d8eb27e824c
xfs: call xfs_flush_unmap_range from xfs_free_file_space

Call xfs_flush_unmap_range from xfs_free_file_space so that
xfs_file_fallocate doesn't have to predict which mode will call it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240827065123.1762168-5-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