From patchwork Mon Nov 4 14:05:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anuj Gupta X-Patchwork-Id: 13861579 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (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 58E911C3026 for ; Mon, 4 Nov 2024 15:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.24 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730735776; cv=none; b=BSxkbC5EHELE2TuNWQnfk46I9tGL2LzoEJxBOd16EDJkqrfdBQ6gyNh+Bs9j/fSVrKvbNR6Z0p4cJKZf0kcIYdMFJscBF6gvuJxuDwiLrYYkbt56BlDCcLwekqezP7JPJJqwAFhEEoS6oQvjvda1PVpmPJnifHoSFrcNf5bLJyk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730735776; c=relaxed/simple; bh=PPDNMGOuEvkJDIU7LllEytV2427zo9AzbP3ebXn9pJ0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=jRxaTcpPnuBsH2aAjPQgjfSGSOZhbxPSjlGf47nOglvcJFswUB+FcpDz1xdp2TQF2P5j4kILcYBcbZEGoR7qp/ocwVkFAT0cqnbA6bM3NG5IriM0msuoYr+LpZssEIUDY6BApq5ETnFIBtLLYufviYm6VYakIRPsvmMHUQ0Scbg= 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=ur0EzeqZ; arc=none smtp.client-ip=203.254.224.24 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="ur0EzeqZ" Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20241104155612epoutp01778dc9e76c31a3670d28c74bdf72135d~EzwP10fav2173421734epoutp01J for ; Mon, 4 Nov 2024 15:56:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20241104155612epoutp01778dc9e76c31a3670d28c74bdf72135d~EzwP10fav2173421734epoutp01J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1730735772; bh=0Qev84oB/WNNKAORKgHjGWYS6Jca41BG3ZIzsvdmNNQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ur0EzeqZ8s10zEmgkjwF3CDxrhCnmJ0jz/kQkGPt9Lp8TfTsPl4wUXgPrpV/BOzaE vcyySZbnBodIOV90iFE7F/QprkNvZ9Ui8rmxQwLd15NxOu1xqx+Nl5jXa2iHw9jm8u otXyxbYgmC8GolzyIrfAxcbJDEohimFP9q1+k6NY= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20241104155611epcas5p4f6ca1d9f35d73c18873bfb1b7cccfaec~EzwPDTMVt1901719017epcas5p4O; Mon, 4 Nov 2024 15:56:11 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.181]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4Xhx0B1y3hz4x9Pq; Mon, 4 Nov 2024 15:56:10 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 22.DA.09800.A9EE8276; Tue, 5 Nov 2024 00:56:10 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20241104141456epcas5p38fef2ccde087de84ffc6f479f50e8071~EyX0xLPPN2420824208epcas5p3A; Mon, 4 Nov 2024 14:14:56 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241104141456epsmtrp1f8075e736025a0e20cc83f1ed67e0f9d~EyX0wYXRY1340613406epsmtrp1K; Mon, 4 Nov 2024 14:14:56 +0000 (GMT) X-AuditID: b6c32a4b-4a7fa70000002648-39-6728ee9a70d8 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 0B.68.35203.0E6D8276; Mon, 4 Nov 2024 23:14:56 +0900 (KST) Received: from localhost.localdomain (unknown [107.99.41.245]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241104141453epsmtip2bc39da8da09bf780b329cc179e0ae39e~EyXydls4O3023030230epsmtip2v; Mon, 4 Nov 2024 14:14:53 +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 v7 05/10] fs: introduce IOCB_HAS_METADATA for metadata Date: Mon, 4 Nov 2024 19:35:56 +0530 Message-Id: <20241104140601.12239-6-anuj20.g@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241104140601.12239-1-anuj20.g@samsung.com> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-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d/VSZ1q 89YeV1n80+r0p2vu/Jdjl/ZNXtB43J2Z073rreLd3eJfpnaevOjYssmJc17H+0y/aXHRASyt U+ILruZd4JZ91Cag1Plv2/zbja+FPacs+p7Ul7bo1c4+NmW5/3O2uzw9dKfMm7N8aXTLt+LV 7GXaqwWtfxQpLW+f8XzhDO3D0yQ+erj0VAt5HBBMmbCgrOPv1XMy11e0bXd2qTxjJj8rJW3m ulolJZbijERDLeai4kQA1JajCSIDAAA= X-CMS-MailID: 20241104141456epcas5p38fef2ccde087de84ffc6f479f50e8071 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20241104141456epcas5p38fef2ccde087de84ffc6f479f50e8071 References: <20241104140601.12239-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 \