]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask
authorYouling Tang <tangyouling@kylinos.cn>
Mon, 30 Jun 2025 01:11:48 +0000 (09:11 +0800)
committerCarlos Maiolino <cem@kernel.org>
Mon, 30 Jun 2025 12:16:13 +0000 (14:16 +0200)
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.

Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_file.c

index 48254a72071bc8213b08e1051a9712a0937cbb11..0b41b18debf36d9edb405accdb1ab47a6a781654 100644 (file)
@@ -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(