Skip to contentSkip to conversation

xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask

PATCH Applied Youling Tang 3 participants 3 messages Jun 30, 2025 – Jul 3, 2025 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask

From: Youling Tang <[email protected]>

Add FALLOC_FL_ALLOCATE_RANGE to the set of supported fallocate flags in XFS_FALLOC_FL_SUPPORTED. This change improves code clarity and maintains by explicitly showing this flag in the supported flags mask.

Note that since FALLOC_FL_ALLOCATE_RANGE is defined as 0x00, this addition has no functional modifications.

---
 fs/xfs/xfs_file.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
fs/xfs/xfs_file.c +4 -3
index 48254a72071b..0b41b18debf3 100644
@@ -1335,9 +1335,10 @@ xfs_falloc_allocate_range(
 }
 
 #define	XFS_FALLOC_FL_SUPPORTED						\
-		(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE |		\
-		 FALLOC_FL_COLLAPSE_RANGE | FALLOC_FL_ZERO_RANGE |	\
-		 FALLOC_FL_INSERT_RANGE | FALLOC_FL_UNSHARE_RANGE)
+		(FALLOC_FL_ALLOCATE_RANGE | FALLOC_FL_KEEP_SIZE |	\
+		 FALLOC_FL_PUNCH_HOLE |	FALLOC_FL_COLLAPSE_RANGE |	\
+		 FALLOC_FL_ZERO_RANGE |	FALLOC_FL_INSERT_RANGE |	\
+		 FALLOC_FL_UNSHARE_RANGE)
 
 STATIC long
 __xfs_file_fallocate(
Signature · 1 line
2.34.1
maintainer Applied
#2 lore raw
In reply to Youling Tang
Quoted 8 lines · Youling Tang

Add FALLOC_FL_ALLOCATE_RANGE to the set of supported fallocate flags in XFS_FALLOC_FL_SUPPORTED. This change improves code clarity and maintains by explicitly showing this flag in the supported flags mask.

Note that since FALLOC_FL_ALLOCATE_RANGE is defined as 0x00, this addition has no functional modifications.

[...]

Applied to for-next, thanks!

[1/1] xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask

      commit: 9e9b46672b1daac814b384286c21fb8332a87392

Best regards,

Signature · 1 line
Carlos Maiolino <[email protected]>