From patchwork Wed Nov 6 12:18:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anuj Gupta X-Patchwork-Id: 841298 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 23FA8202628 for ; Wed, 6 Nov 2024 14:29:11 +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=1730903352; cv=none; b=QPnelp1i0iZrx5qy6jW4R+WL7lh7KkYCYeADxmGhwKHgIjf38napS3iraFQa+SgpV+gQcMk7uPgZqFIFJJaGYWj4+7boLKnRUqGvor/ildO+pYaUbrxv2NRVl1/iyTvHLw/awd/Fg//VcWzJQbLeHTUP2ykgAH4dkSWSw/oYqWw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730903352; c=relaxed/simple; bh=PPDNMGOuEvkJDIU7LllEytV2427zo9AzbP3ebXn9pJ0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=b1ZhnHCEED7QqTRjBE5HW7FuugsilkbmOhMQKY6DvlIE1FGolW6i3LpW0DxjzDeNrV2PB9DC0u60KTjjmPSFYMVYrof3nZpxfVpH+8/yY9LlfR5qpJWd7951lFqcDu9fkHKuQZ1XFgnNMsrxhZCcXMIgY4d/ysq8hGWZmo66IWM= 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=FAzQbwKs; 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="FAzQbwKs" Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20241106142909epoutp03bf441f02152743f6b3ae42acfd8e7731~FZ2zyQ3eY2254722547epoutp03K for ; Wed, 6 Nov 2024 14:29:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20241106142909epoutp03bf441f02152743f6b3ae42acfd8e7731~FZ2zyQ3eY2254722547epoutp03K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1730903349; bh=0Qev84oB/WNNKAORKgHjGWYS6Jca41BG3ZIzsvdmNNQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FAzQbwKsTwvoJdhonO9VuNhMcbkLg2c8cKJVpdNlQ6CoscdrPap/OTJzYL5KiunFC mZxwbMrEcYhjBLYrsHY9WG9ACUJqnQakqfp1wSzWA1F0e1pV9LlvACotab+GoEtB8t NqbHHkFujtnpoqxbQ39h4UVzI6n3q4Kw4OV14Kyw= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20241106142907epcas5p4cd812cc8e7fc11874341fdc6f71c87ad~FZ2yc_mFs2211422114epcas5p43; Wed, 6 Nov 2024 14:29:07 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.182]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Xk6yp2rNJz4x9Pp; Wed, 6 Nov 2024 14:29:06 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C2.3F.09420.23D7B276; Wed, 6 Nov 2024 23:29:06 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20241106122707epcas5p4569e1ddc2ded4de5da6663fb7ffc9464~FYMQt5zRh2745227452epcas5p4C; Wed, 6 Nov 2024 12:27:07 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20241106122707epsmtrp2d7c95e110d83e1218218e7b8efeebd69~FYMQtC4LE2560925609epsmtrp2X; Wed, 6 Nov 2024 12:27:07 +0000 (GMT) X-AuditID: b6c32a49-33dfa700000024cc-44-672b7d3224ca Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 28.01.35203.B906B276; Wed, 6 Nov 2024 21:27:07 +0900 (KST) Received: from localhost.localdomain (unknown [107.99.41.245]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20241106122704epsmtip17756c41bf463aa6063af90bb7e9c5a3f~FYMORbEts0844908449epsmtip1b; Wed, 6 Nov 2024 12:27:04 +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 v8 05/10] fs: introduce IOCB_HAS_METADATA for metadata Date: Wed, 6 Nov 2024 17:48:37 +0530 Message-Id: <20241106121842.5004-6-anuj20.g@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241106121842.5004-1-anuj20.g@samsung.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: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r8a/K2HbhI1wp6ik5m5o9nd8tk/t40M+k9VhHmWKzUuCajgz2WxIK 0tnqb95smaWQ4TMlfN22tr1ZN/s2F9ze8GLOG/snav/jCpozn/rJTk9+pzTXrmpPoCznwSbv P+8PXwr2MfD6Oi+8yMVoYmlyqKhReYOQMecD3ZQu1Q1KN2W+vAyxaVHY/GVhJWP+vz++Yjai 09cq3ziSPF1B7ld34gUF1bp6m1llpezXf9kUJSdzqeSev6Mjk1NpVtBV9b9t+5Pkj5fUDcV3 KLEUZyQaajEXFScCAEUlpbcjAwAA X-CMS-MailID: 20241106122707epcas5p4569e1ddc2ded4de5da6663fb7ffc9464 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20241106122707epcas5p4569e1ddc2ded4de5da6663fb7ffc9464 References: <20241106121842.5004-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 4b5cad44a126..7f14675b02df 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -346,6 +346,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 \