* [PATCH v2] xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask
@ 2025-06-30 1:11 Youling Tang
2025-06-30 6:39 ` Christoph Hellwig
2025-07-03 7:27 ` Carlos Maiolino
0 siblings, 2 replies; 3+ messages in thread
From: Youling Tang @ 2025-06-30 1:11 UTC (permalink / raw)
To: Carlos Maiolino
Cc: linux-xfs, linux-kernel, youling.tang, Youling Tang,
Carlos Maiolino
From: Youling Tang <tangyouling@kylinos.cn>
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>
---
fs/xfs/xfs_file.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 48254a72071b..0b41b18debf3 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -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(
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask
2025-06-30 1:11 [PATCH v2] xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask Youling Tang
@ 2025-06-30 6:39 ` Christoph Hellwig
2025-07-03 7:27 ` Carlos Maiolino
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2025-06-30 6:39 UTC (permalink / raw)
To: Youling Tang
Cc: Carlos Maiolino, linux-xfs, linux-kernel, Youling Tang,
Carlos Maiolino
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask
2025-06-30 1:11 [PATCH v2] xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask Youling Tang
2025-06-30 6:39 ` Christoph Hellwig
@ 2025-07-03 7:27 ` Carlos Maiolino
1 sibling, 0 replies; 3+ messages in thread
From: Carlos Maiolino @ 2025-07-03 7:27 UTC (permalink / raw)
To: Youling Tang; +Cc: linux-xfs, linux-kernel, Youling Tang, Carlos Maiolino
On Mon, 30 Jun 2025 09:11:48 +0800, Youling Tang wrote:
> 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,
--
Carlos Maiolino <cem@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-03 7:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30 1:11 [PATCH v2] xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask Youling Tang
2025-06-30 6:39 ` Christoph Hellwig
2025-07-03 7:27 ` Carlos Maiolino
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.