From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (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 BF7A919C574 for ; Thu, 28 Nov 2024 11:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732794372; cv=none; b=vDAROFDWjDOrozI36QKzjOiURvAPxdvNdggf8Le8B2iiKEnzIUrxNEJbYwy9s+zqxmg4YnU9KMe90pHC/93yplpApgSrU7VBAU9ep1OVAFRkUKp8BqPVxxqdHEPxNwk22cDVyVXAzyTik5n4Q4f9bWZXR3u0/50SikRu8letTr4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732794372; c=relaxed/simple; bh=mlLpOADJdimbzMrJqxVCIky165ZgGg3a+54zC1LiT88=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=rczqMS962yuzz4syty0O/T50rRPHy+RIynt2h/RqNuq1hQK+LnQDFtDXvR5nts3/TMjsf76QBgL59Wouso2u/906KiiGzWY4jAHhWTqZ7/Y+D8WV9azhaG8QMrOISvhrzH/F9xiaUUd4GF9faGBk9SgIiVDORKVRjz4ioNEPtIU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=JzLRZu9i; arc=none smtp.client-ip=203.254.224.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="JzLRZu9i" Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20241128114609epoutp0318348ed2702fb33f97875e374881c5b6~MH0xEzmtV3197531975epoutp03L for ; Thu, 28 Nov 2024 11:46:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20241128114609epoutp0318348ed2702fb33f97875e374881c5b6~MH0xEzmtV3197531975epoutp03L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1732794369; bh=cRuOygxyfLjl7ybgQ+EVk9IvCIBAqSeYwRZ/zr1tr/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JzLRZu9ihGM6g1beIxWgzgI5b0ZoECOIlcbkGAf4edK8wugmOSwVFL27tKcQ+oJci CUj1LAkSGkpVharDM4exT0ZuOMNY1qbUypvBWCpaJN/S/9KzehiJuO8gbTiIrNyjU/ eq42oGTDSXLf7UR0C+JfP1slhwbmE/+i/50imHZE= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20241128114608epcas5p19b71a782a4aaf32b6af0939969df31a4~MH0woohAk2942729427epcas5p1x; Thu, 28 Nov 2024 11:46:08 +0000 (GMT) Received: from epsmgec5p1new.samsung.com (unknown [182.195.38.178]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4XzZJb1LSxz4x9Pr; Thu, 28 Nov 2024 11:46:07 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmgec5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 9B.B3.19710.FF758476; Thu, 28 Nov 2024 20:46:07 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20241128113106epcas5p1b5b06683bfa72225f3c1ab102b9f361c~MHnok8sA41555015550epcas5p1s; Thu, 28 Nov 2024 11:31:06 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20241128113106epsmtrp2ce54218dc402e02bcb6731b7b6bf72f8~MHnokAPLv0091000910epsmtrp2a; Thu, 28 Nov 2024 11:31:06 +0000 (GMT) X-AuditID: b6c32a44-36bdd70000004cfe-9f-674857fee0ec Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id E4.5E.18949.A7458476; Thu, 28 Nov 2024 20:31:06 +0900 (KST) Received: from localhost.localdomain (unknown [107.99.41.245]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241128113104epsmtip27d46969dee4538ebbdc537c9a941345f~MHnmQAdcM2660826608epsmtip2Q; Thu, 28 Nov 2024 11:31:03 +0000 (GMT) From: Anuj Gupta To: axboe@kernel.dk, hch@lst.de, kbusch@kernel.org, martin.petersen@oracle.com, asml.silence@gmail.com, anuj1072538@gmail.com, brauner@kernel.org, jack@suse.cz, viro@zeniv.linux.org.uk Cc: io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, gost.dev@samsung.com, linux-scsi@vger.kernel.org, vishak.g@samsung.com, linux-fsdevel@vger.kernel.org, Anuj Gupta Subject: [PATCH v11 05/10] fs: introduce IOCB_HAS_METADATA for metadata Date: Thu, 28 Nov 2024 16:52:35 +0530 Message-Id: <20241128112240.8867-6-anuj20.g@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241128112240.8867-1-anuj20.g@samsung.com> Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Tf0xTVxTe7WtfH2VdHj+2XZoI9WVG+U2l1FsiY4l1PMeSQYYhWaLwhLcW KG1ti05jsrrKFphMQIVQioA61BK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+NDj2QbOj/svFl1xfZWGl/5qO5F2LeHNlzrERZuEasa+MhmUWO56MLcqMXf0iNC63i DnqjqlsZdWBZ4g7PI01q1S7sqUUxPsKnM6002p4fOpWYWaS+6oBwS2/F3q1qxwIXdP35Jjt5 9okvB5VYijMSDbWYi4oTAaMA8ZgiAwAA X-CMS-MailID: 20241128113106epcas5p1b5b06683bfa72225f3c1ab102b9f361c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20241128113106epcas5p1b5b06683bfa72225f3c1ab102b9f361c References: <20241128112240.8867-1-anuj20.g@samsung.com> Introduce an IOCB_HAS_METADATA flag for the kiocb struct, for handling requests containing meta payload. Signed-off-by: Anuj Gupta Reviewed-by: Christoph Hellwig --- include/linux/fs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index 7e29433c5ecc..2cc3d45da7b0 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -348,6 +348,7 @@ struct readahead_control; #define IOCB_DIO_CALLER_COMP (1 << 22) /* kiocb is a read or write operation submitted by fs/aio.c. */ #define IOCB_AIO_RW (1 << 23) +#define IOCB_HAS_METADATA (1 << 24) /* for use in trace events */ #define TRACE_IOCB_STRINGS \ -- 2.25.1