From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from unicom146.biz-email.net (unicom146.biz-email.net [210.51.26.146]) (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 53A3633E1; Tue, 15 Jul 2025 06:46:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.146 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752562017; cv=none; b=YvEgbpmBfxiMV241WLkOAPKE0hFUgsxuAfNNPCpJPDbuOj0ciXhTxlgGie1KhiSOElYJ3CexRIuXnlzFHdMsBFUFpOC3rg4mSfqTWASy6sU2LOdIYC3IZQs0mRmSlCumHvgmjLa9buZA9/GCoJ/SihBq00KZfyfN2J98LR1Kx1E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752562017; c=relaxed/simple; bh=p7mYb+JT5JiF+JFb86lf9u6NOxkuai/x+Mjv07iXfHc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qEe9pdOe9dwdqdbuDeOJkXh7bCAoieeuNGImZ3fvO0JjXE5oh/nckbwplvz1RdroiM2APOoKCb3i0IKAnVpqpIu/wXOpYr8fF1F+Tg/HWv7iLudgeLfYpQFj1xDrXUkxBZWx0MxMdYRGZH9Zy42n363pkIL3mkdbxegRhYTVYR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com; spf=pass smtp.mailfrom=inspur.com; arc=none smtp.client-ip=210.51.26.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inspur.com Received: from jtjnmail201610.home.langchao.com by unicom146.biz-email.net ((D)) with ASMTP (SSL) id 202507151446414757; Tue, 15 Jul 2025 14:46:41 +0800 Received: from localhost.localdomain.com (10.94.4.253) by jtjnmail201610.home.langchao.com (10.100.2.10) with Microsoft SMTP Server id 15.1.2507.57; Tue, 15 Jul 2025 14:46:42 +0800 From: chuguangqing To: Theodore Ts'o , Andreas Dilger CC: , , chuguangqing Subject: [PATCH 1/1] ext4: add FALLOC_FL_ALLOCATE_RANGE to supported flags mask Date: Tue, 15 Jul 2025 14:45:18 +0800 Message-ID: <20250715064536.12053-1-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250715043808.5808-2-chuguangqing@inspur.com> References: <20250715043808.5808-2-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain tUid: 2025715144641342dc654f74852fed5d27fa122b9e92b X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com Note that since FALLOC_FL_ALLOCATE_RANGE is defined as 0x00, this addition has no functional modifications. Signed-off-by: chuguangqing --- fs/ext4/extents.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index b43aa82c1b39..f0f9363fd9fd 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -4784,9 +4784,9 @@ long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len) return -EOPNOTSUPP; /* Return error if mode is not supported */ - if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | - FALLOC_FL_ZERO_RANGE | FALLOC_FL_COLLAPSE_RANGE | - FALLOC_FL_INSERT_RANGE | FALLOC_FL_WRITE_ZEROES)) + if (mode & ~(FALLOC_FL_ALLOCATE_RANGE | FALLOC_FL_KEEP_SIZE | + FALLOC_FL_PUNCH_HOLE | FALLOC_FL_COLLAPSE_RANGE | + FALLOC_FL_ZERO_RANGE | FALLOC_FL_INSERT_RANGE)) return -EOPNOTSUPP; inode_lock(inode); -- 2.43.5