From patchwork Mon Nov 25 07:06:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anuj Gupta X-Patchwork-Id: 13884519 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 B1461161320 for ; Mon, 25 Nov 2024 08:08:10 +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=1732522093; cv=none; b=kVoe/EXgijLxMepqXEPxovkklYvjBpmGB9iUq++t3HTMjvVfHCpgcoS5n3E+Qi9VgOMMQ5YB2WMUsbr48/UiuYVuDFqtD2ZfNhN41/ZpsdED12g4b0yZengrIC6iegozw4m3173OpKDixlywDphfKzjgzMPG4YHfLJmsYhmAu+E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732522093; c=relaxed/simple; bh=mlLpOADJdimbzMrJqxVCIky165ZgGg3a+54zC1LiT88=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=o27gI9eKVDSHPP+ywu+PFD0lTydD9f4ewaFzXD/M/GdAfpvDZlZozVKh68Vxz/JtsDgNpPPTPdPcwRoG/SlVd1fW9ArX1pI065fxe7o7Kg45xbUWYlOOd41QNxmVMvOlT3sK2xeEAwKKyCpB6xbg/ZFkr3XSb9s8syeOQyFTj4A= 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=smbc0ws0; 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="smbc0ws0" Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20241125080809epoutp01b5e33424aa7f0c44402a47ccffba155e~LJ6kmTBcN0944909449epoutp01e for ; Mon, 25 Nov 2024 08:08:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20241125080809epoutp01b5e33424aa7f0c44402a47ccffba155e~LJ6kmTBcN0944909449epoutp01e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1732522089; bh=cRuOygxyfLjl7ybgQ+EVk9IvCIBAqSeYwRZ/zr1tr/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=smbc0ws0smxYmZG/CN7HVxuM6t7MWsPu1ZeXvsgB5MNj6A6nhjUaXoeri2hI37nUS 1K2G9kfk2mdlt0AXni41gERpc/n78v0lnyxA7ZVLJUgRLj5THnSX9S3VxSMc9XLoJc SS+cb8YaMXeKtnh0KebK3fydemKw5FmW/SsTSaNA= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20241125080808epcas5p2b7dd75e2725ca299b9ea22c81ac446c2~LJ6jzKWdX0648106481epcas5p28; Mon, 25 Nov 2024 08:08:08 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.180]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4XxdcQ1smBz4x9QB; Mon, 25 Nov 2024 08:08:06 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id B2.ED.19956.36034476; Mon, 25 Nov 2024 17:08:03 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20241125071459epcas5p3f603d511a03c790476cce37505e61a0b~LJMKR1yvq1112911129epcas5p34; Mon, 25 Nov 2024 07:14:59 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241125071459epsmtrp1ed6807f767e39f81d65beacab6a7ddc4~LJMKPu7VC0302403024epsmtrp1z; Mon, 25 Nov 2024 07:14:59 +0000 (GMT) X-AuditID: b6c32a4b-fd1f170000004df4-30-674430635e64 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 83.45.19220.3F324476; Mon, 25 Nov 2024 16:14:59 +0900 (KST) Received: from localhost.localdomain (unknown [107.99.41.245]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20241125071457epsmtip1090cf8f1a1638fb76db36ee392448f28~LJMH4TYPm0365203652epsmtip1U; Mon, 25 Nov 2024 07:14:57 +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 v10 05/10] fs: introduce IOCB_HAS_METADATA for metadata Date: Mon, 25 Nov 2024 12:36:28 +0530 Message-Id: <20241125070633.8042-6-anuj20.g@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241125070633.8042-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: H4sIAAAAAAAAA02Te0xTVx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UjixBjo5uXnO846zioV4eunBA2o+nrgXvrEvckRtczb91bGcX/vFBjZd1dq65a 5iNu/CqOZq3H90Wpf/wur3dnZsf0sit8VsvrP9a/3fZORSQobmHg/7MJ6ncSzS4+m7/DN/ht wL5DDiLrL7lOqagUajQMaTWOF5u+vfLV5X0xSxlWyvpnxeZZSCkvPtK9jlfn33exbjGXyqMb BQL4lFiKMxINtZiLihMB9+Bh4yIDAAA= X-CMS-MailID: 20241125071459epcas5p3f603d511a03c790476cce37505e61a0b X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20241125071459epcas5p3f603d511a03c790476cce37505e61a0b References: <20241125070633.8042-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 \