From nobody Wed Oct 8 09:59:59 2025 Received: from out-172.mta1.migadu.com (out-172.mta1.migadu.com [95.215.58.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 299A715C0 for ; Mon, 30 Jun 2025 01:12:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751245982; cv=none; b=sralI6Ug7AGsbUDY4F0/JSoOnDZoGPolcFIY1pLs9DsovYxFASNoaD56IFUgwuO/xyNqgNSc2Hf9T57nh1cbsf8uTMoOOky0L6fK6w6tst86DxVmhiRz5k+/jc2oOWUxxnu1LWUfKaWnc12O/HU1n/Skn5gEdM78QPVop8Woh54= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751245982; c=relaxed/simple; bh=JyY6x3WO4O3rSyD/50PCDFcxJh6dR4x2/UGZdiqYXI4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=NXSLsFeQzdUnIRRBCfSz3a00LaL0fjvMZgwpgmglCITETEFm6WvlgpQVrhITLGuSpbCs5Gk/r2yZ8KMJ/UOb1B+ON/rtsT5yloCjUehsCgJ3xuTQUiEQGJZsA7m3kis5qWTejOIRsCUDI4yEr1/DTqmOV+ueSF4euhfMT+I8J2o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=G/HT7h5k; arc=none smtp.client-ip=95.215.58.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="G/HT7h5k" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1751245977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=u7uGCW/EzKj4i/CdQK+s8UE/LRLBYUvZIt9q7yiB3JU=; b=G/HT7h5kjbwJ8MDlOFudWTtgwpE1n1u9xWZfphoWVM1gpnh7VBF9E8sigMbG+TVT58c+pN osVpDcEWs4kjO0pIPUvvfavkygTKeKMYJflf8O9N3QJ1D/6XxR8Rh2Eyce3lNLXXpw6seo N700UNt0U98e6+cEog8rQUz7meZLQc8= From: Youling Tang To: Carlos Maiolino Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, youling.tang@linux.dev, Youling Tang , Carlos Maiolino Subject: [PATCH v2] xfs: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask Date: Mon, 30 Jun 2025 09:11:48 +0800 Message-Id: <20250630011148.6357-1-youling.tang@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" From: 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. Reviewed-by: Carlos Maiolino Signed-off-by: Youling Tang Reviewed-by: Christoph Hellwig --- 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( } =20 #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) =20 STATIC long __xfs_file_fallocate( --=20 2.34.1