Skip to content

Commit 9e9b466

Browse files
tangyoulingcmaiolino
authored andcommitted
xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask
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 <[email protected]> Signed-off-by: Youling Tang <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
1 parent 7b5f775 commit 9e9b466

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fs/xfs/xfs_file.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,9 +1335,10 @@ xfs_falloc_allocate_range(
13351335
}
13361336

13371337
#define XFS_FALLOC_FL_SUPPORTED \
1338-
(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | \
1339-
FALLOC_FL_COLLAPSE_RANGE | FALLOC_FL_ZERO_RANGE | \
1340-
FALLOC_FL_INSERT_RANGE | FALLOC_FL_UNSHARE_RANGE)
1338+
(FALLOC_FL_ALLOCATE_RANGE | FALLOC_FL_KEEP_SIZE | \
1339+
FALLOC_FL_PUNCH_HOLE | FALLOC_FL_COLLAPSE_RANGE | \
1340+
FALLOC_FL_ZERO_RANGE | FALLOC_FL_INSERT_RANGE | \
1341+
FALLOC_FL_UNSHARE_RANGE)
13411342

13421343
STATIC long
13431344
__xfs_file_fallocate(

0 commit comments

Comments
 (0)