From nobody Mon Feb 9 14:34:05 2026 Received: from mx10.didiglobal.com (mx10.didiglobal.com [111.202.70.125]) by smtp.subspace.kernel.org (Postfix) with SMTP id 0F1B325FA12; Mon, 21 Apr 2025 10:51:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.202.70.125 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745232666; cv=none; b=neVQ4rb+sSgKMrjlUn144AAvBczaBvunVF2d5kqncJgiIc5NZ3LPveJAp2XminKn8Ncaup/VWzcLR26vTk02HwrUON+AlfgulJRiofoTnglnYfrAxc+g8Atohki8KYw+1y2m8n5QqkLGkZwl5nFx2NAw/vSl83pXQYGLL+DD9/U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745232666; c=relaxed/simple; bh=hFz97Lo2xaVpF4pAJScKj+lhnnOUupxcb9PG6LD3Pl0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:Content-Type: MIME-Version; b=C3Zy8Xbl9S1m7Ep0XQzdUa4217//tba6tx+0fyAuLBuP2OaBFXV2NO0BkoNeRXU6M3tSGkWSuZcFtxckh71mRvzPU+BBPnv2G+Dnzk4N2scOZWH6/8Rgtg5PNsNl8ELUgS22xvpGRD2ixRd0IAIy4vk3ewyDSZyuIb1JYBbOt70= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=didiglobal.com; spf=pass smtp.mailfrom=didiglobal.com; dkim=pass (1024-bit key) header.d=didiglobal.com header.i=@didiglobal.com header.b=liixehVr; arc=none smtp.client-ip=111.202.70.125 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=didiglobal.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=didiglobal.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=didiglobal.com header.i=@didiglobal.com header.b="liixehVr" Received: from mail.didiglobal.com (unknown [10.79.65.20]) by mx10.didiglobal.com (MailData Gateway V2.8.8) with ESMTPS id CB857192BB6581; Mon, 21 Apr 2025 18:49:58 +0800 (CST) Received: from BJ03-ACTMBX-08.didichuxing.com (10.79.71.35) by BJ02-ACTMBX-02.didichuxing.com (10.79.65.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Mon, 21 Apr 2025 18:50:32 +0800 Received: from BJ03-ACTMBX-07.didichuxing.com (10.79.71.34) by BJ03-ACTMBX-08.didichuxing.com (10.79.71.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Mon, 21 Apr 2025 18:50:31 +0800 Received: from BJ03-ACTMBX-07.didichuxing.com ([fe80::b00b:de35:2067:9787]) by BJ03-ACTMBX-07.didichuxing.com ([fe80::b00b:de35:2067:9787%7]) with mapi id 15.02.1748.010; Mon, 21 Apr 2025 18:50:31 +0800 X-MD-Sfrom: chentaotao@didiglobal.com X-MD-SrcIP: 10.79.65.20 From: =?gb2312?B?s8LMzszOIFRhb3RhbyBDaGVu?= To: "tytso@mit.edu" , "adilger.kernel@dilger.ca" , "akpm@linux-foundation.org" , "willy@infradead.org" CC: "linux-ext4@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , =?gb2312?B?s8LMzszOIFRhb3RhbyBDaGVu?= Subject: [PATCH 3/3] ext4: support FOP_DONTCACHE flag Thread-Topic: [PATCH 3/3] ext4: support FOP_DONTCACHE flag Thread-Index: AQHbsqszui5Ecff3LEGshtT9cUjseg== Date: Mon, 21 Apr 2025 10:50:31 +0000 Message-ID: <20250421105026.19577-4-chentaotao@didiglobal.com> In-Reply-To: <20250421105026.19577-1-chentaotao@didiglobal.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=didiglobal.com; s=2025; t=1745232621; bh=hFz97Lo2xaVpF4pAJScKj+lhnnOUupxcb9PG6LD3Pl0=; h=From:To:CC:Subject:Date:Message-ID:Content-Type; b=liixehVrPYGClqy9waNISrhPdzL4qwDzk290xUSvvD/Yi2Rsr2MwkxZNSNTd6fu3A uloOFN+PYNzfHJ1+ht9LCCRSySPulhYksJwRdGDgLZH1tmfHsc8PrlAbWBVP9p3MRE /+Fkh4AfuuugpM+gh+y09VRmax+2lRFSkuLYORrY= Content-Type: text/plain; charset="utf-8" From: Taotao Chen After the core logic for handling IOCB_DONTCACHE was implemented in the previous patch, we now formally enable the feature by adding FOP_DONTCACHE to ext4's file operations flags. Signed-off-by: Taotao Chen --- fs/ext4/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index beb078ee4811..c514903d85c7 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -977,7 +977,7 @@ const struct file_operations ext4_file_operations =3D { .splice_write =3D iter_file_splice_write, .fallocate =3D ext4_fallocate, .fop_flags =3D FOP_MMAP_SYNC | FOP_BUFFER_RASYNC | - FOP_DIO_PARALLEL_WRITE, + FOP_DIO_PARALLEL_WRITE | FOP_DONTCACHE, }; =20 const struct inode_operations ext4_file_inode_operations =3D { --=20 2.34.1