Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216357/?format=api
{ "id": 2216357, "url": "http://patchwork.ozlabs.org/api/patches/2216357/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260326104544.509518-22-dhowells@redhat.com/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/projects/12/?format=api", "name": "Linux CIFS Client", "link_name": "linux-cifs-client", "list_id": "linux-cifs.vger.kernel.org", "list_email": "linux-cifs@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260326104544.509518-22-dhowells@redhat.com>", "list_archive_url": null, "date": "2026-03-26T10:45:36", "name": "[21/26] netfs: Remove netfs_extract_user_iter()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "89542794a6d91864b221349433843b643b5520b6", "submitter": { "id": 59, "url": "http://patchwork.ozlabs.org/api/people/59/?format=api", "name": "David Howells", "email": "dhowells@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260326104544.509518-22-dhowells@redhat.com/mbox/", "series": [ { "id": 497565, "url": "http://patchwork.ozlabs.org/api/series/497565/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=497565", "date": "2026-03-26T10:45:15", "name": "netfs: Keep track of folios in a segmented bio_vec[] chain", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497565/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216357/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216357/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-10544-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-cifs@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=IT9vbJ+/;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10544-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.b=\"IT9vbJ+/\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=170.10.133.124", "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=redhat.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=redhat.com" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhLWm491bz1yGD\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 22:04:36 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id D9BFC31D067B\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 10:54:22 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 5AE8A394495;\n\tThu, 26 Mar 2026 10:49:20 +0000 (UTC)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id E1B0C3E867A\n\tfor <linux-cifs@vger.kernel.org>; Thu, 26 Mar 2026 10:49:18 +0000 (UTC)", "from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-204-49IjD0dQNSmL208bogD7jQ-1; Thu,\n 26 Mar 2026 06:49:12 -0400", "from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id DC199195608B;\n\tThu, 26 Mar 2026 10:49:09 +0000 (UTC)", "from warthog.procyon.org.com (unknown [10.44.33.121])\n\tby mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 1B5B619560B1;\n\tThu, 26 Mar 2026 10:49:02 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774522160; cv=none;\n b=jqXej9mmZjYO7ZZF8KMzUvPghRGlq7KFCEiQoFCPXRk6KUOfB6X4DcRyj29QcrbKKdjTxnmnuW9FgJuar9FHyP1Q54yx4PzUds5myVL7+tCMNmiSrTrctdiFpHQGJOMY89atDdhD2YjM8kmFnIbD50HPU7JfIjgsbJ7XyHRPwfA=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774522160; c=relaxed/simple;\n\tbh=SpZ0VaxBSEp+1ZOqzyTVy/Rn9WvmDJmje0biyVbE8tE=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=drpmgm9jVqnXvaN7dNKV5tbFNpdp6kEvmeihX/uR6I3Zd0yxa3SC1A1hgZaFFknpL6zMpLKoqljXaOuXLn+hjso1Fn6xGXmpcUB9lCFcTT2ZNNwhta/eB6/qbVK5kdGS4BB371KUmFrfLFuLAZZlliG+Gn2Fey/9hPo+BwT793E=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=redhat.com;\n spf=pass smtp.mailfrom=redhat.com;\n dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.b=IT9vbJ+/; arc=none smtp.client-ip=170.10.133.124", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1774522158;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=k6WIL/CPxi5yzw8jRwBaVYznmdI4kDLcX63WUAhouhQ=;\n\tb=IT9vbJ+/oEsynpdbd9m34YWE3r5EgqyZH3F4bpxQ/QiykypyhcUHEJoBE8ZitD2ZASWT2k\n\tytHjPEEMpwRhDPwXKv/uq9gx1xA0TWQ8jD3ILGWpb7vFDxnAlEDzgvWsCxQZFjPhSn8FY6\n\twAb4GzmooqRGBl/wgUpoWDJRV4ygQT8=", "X-MC-Unique": "49IjD0dQNSmL208bogD7jQ-1", "X-Mimecast-MFC-AGG-ID": "49IjD0dQNSmL208bogD7jQ_1774522150", "From": "David Howells <dhowells@redhat.com>", "To": "Christian Brauner <christian@brauner.io>,\n\tMatthew Wilcox <willy@infradead.org>,\n\tChristoph Hellwig <hch@infradead.org>", "Cc": "David Howells <dhowells@redhat.com>,\n\tPaulo Alcantara <pc@manguebit.com>,\n\tJens Axboe <axboe@kernel.dk>,\n\tLeon Romanovsky <leon@kernel.org>,\n\tSteve French <sfrench@samba.org>,\n\tChenXiaoSong <chenxiaosong@chenxiaosong.com>,\n\tMarc Dionne <marc.dionne@auristor.com>,\n\tEric Van Hensbergen <ericvh@kernel.org>,\n\tDominique Martinet <asmadeus@codewreck.org>,\n\tIlya Dryomov <idryomov@gmail.com>,\n\tTrond Myklebust <trondmy@kernel.org>,\n\tnetfs@lists.linux.dev,\n\tlinux-afs@lists.infradead.org,\n\tlinux-cifs@vger.kernel.org,\n\tlinux-nfs@vger.kernel.org,\n\tceph-devel@vger.kernel.org,\n\tv9fs@lists.linux.dev,\n\tlinux-erofs@lists.ozlabs.org,\n\tlinux-fsdevel@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tPaulo Alcantara <pc@manguebit.org>", "Subject": "[PATCH 21/26] netfs: Remove netfs_extract_user_iter()", "Date": "Thu, 26 Mar 2026 10:45:36 +0000", "Message-ID": "<20260326104544.509518-22-dhowells@redhat.com>", "In-Reply-To": "<20260326104544.509518-1-dhowells@redhat.com>", "References": "<20260326104544.509518-1-dhowells@redhat.com>", "Precedence": "bulk", "X-Mailing-List": "linux-cifs@vger.kernel.org", "List-Id": "<linux-cifs.vger.kernel.org>", "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Scanned-By": "MIMEDefang 3.0 on 10.30.177.12" }, "content": "Remove netfs_extract_user_iter() as it has been replaced with\nnetfs_extract_iter().\n\nSigned-off-by: David Howells <dhowells@redhat.com>\ncc: Paulo Alcantara <pc@manguebit.org>\ncc: Matthew Wilcox <willy@infradead.org>\ncc: Christoph Hellwig <hch@infradead.org>\ncc: Steve French <sfrench@samba.org>\ncc: linux-cifs@vger.kernel.org\ncc: netfs@lists.linux.dev\ncc: linux-fsdevel@vger.kernel.org\n---\n fs/netfs/iterator.c | 96 -------------------------------------------\n include/linux/netfs.h | 3 --\n 2 files changed, 99 deletions(-)", "diff": "diff --git a/fs/netfs/iterator.c b/fs/netfs/iterator.c\nindex 581dbf650a19..442f893a0d65 100644\n--- a/fs/netfs/iterator.c\n+++ b/fs/netfs/iterator.c\n@@ -137,102 +137,6 @@ ssize_t netfs_extract_iter(struct iov_iter *orig, size_t orig_len, size_t max_se\n EXPORT_SYMBOL_GPL(netfs_extract_iter);\n \n #if 0\n-/**\n- * netfs_extract_user_iter - Extract the pages from a user iterator into a bvec\n- * @orig: The original iterator\n- * @orig_len: The amount of iterator to copy\n- * @new: The iterator to be set up\n- * @extraction_flags: Flags to qualify the request\n- *\n- * Extract the page fragments from the given amount of the source iterator and\n- * build up a second iterator that refers to all of those bits. This allows\n- * the original iterator to be disposed of.\n- *\n- * @extraction_flags can have ITER_ALLOW_P2PDMA set to request peer-to-peer DMA be\n- * allowed on the pages extracted.\n- *\n- * On success, the number of elements in the bvec is returned, the original\n- * iterator will have been advanced by the amount extracted.\n- *\n- * The iov_iter_extract_mode() function should be used to query how cleanup\n- * should be performed.\n- */\n-ssize_t netfs_extract_user_iter(struct iov_iter *orig, size_t orig_len,\n-\t\t\t\tstruct iov_iter *new,\n-\t\t\t\tiov_iter_extraction_t extraction_flags)\n-{\n-\tstruct bio_vec *bv = NULL;\n-\tstruct page **pages;\n-\tunsigned int cur_npages;\n-\tunsigned int max_pages;\n-\tunsigned int npages = 0;\n-\tunsigned int i;\n-\tssize_t ret;\n-\tsize_t count = orig_len, offset, len;\n-\tsize_t bv_size, pg_size;\n-\n-\tif (WARN_ON_ONCE(!iter_is_ubuf(orig) && !iter_is_iovec(orig)))\n-\t\treturn -EIO;\n-\n-\tmax_pages = iov_iter_npages(orig, INT_MAX);\n-\tbv_size = array_size(max_pages, sizeof(*bv));\n-\tbv = kvmalloc(bv_size, GFP_KERNEL);\n-\tif (!bv)\n-\t\treturn -ENOMEM;\n-\n-\t/* Put the page list at the end of the bvec list storage. bvec\n-\t * elements are larger than page pointers, so as long as we work\n-\t * 0->last, we should be fine.\n-\t */\n-\tpg_size = array_size(max_pages, sizeof(*pages));\n-\tpages = (void *)bv + bv_size - pg_size;\n-\n-\twhile (count && npages < max_pages) {\n-\t\tret = iov_iter_extract_pages(orig, &pages, count,\n-\t\t\t\t\t max_pages - npages, extraction_flags,\n-\t\t\t\t\t &offset);\n-\t\tif (unlikely(ret <= 0)) {\n-\t\t\tret = ret ?: -EIO;\n-\t\t\tbreak;\n-\t\t}\n-\n-\t\tif (ret > count) {\n-\t\t\tpr_err(\"get_pages rc=%zd more than %zu\\n\", ret, count);\n-\t\t\tbreak;\n-\t\t}\n-\n-\t\tcount -= ret;\n-\t\tret += offset;\n-\t\tcur_npages = DIV_ROUND_UP(ret, PAGE_SIZE);\n-\n-\t\tif (npages + cur_npages > max_pages) {\n-\t\t\tpr_err(\"Out of bvec array capacity (%u vs %u)\\n\",\n-\t\t\t npages + cur_npages, max_pages);\n-\t\t\tbreak;\n-\t\t}\n-\n-\t\tfor (i = 0; i < cur_npages; i++) {\n-\t\t\tlen = ret > PAGE_SIZE ? PAGE_SIZE : ret;\n-\t\t\tbvec_set_page(bv + npages + i, *pages++, len - offset, offset);\n-\t\t\tret -= len;\n-\t\t\toffset = 0;\n-\t\t}\n-\n-\t\tnpages += cur_npages;\n-\t}\n-\n-\tif (ret < 0 && (ret == -ENOMEM || npages == 0)) {\n-\t\tfor (i = 0; i < npages; i++)\n-\t\t\tunpin_user_page(bv[i].bv_page);\n-\t\tkvfree(bv);\n-\t\treturn ret;\n-\t}\n-\n-\tiov_iter_bvec(new, orig->data_source, bv, npages, orig_len - count);\n-\treturn npages;\n-}\n-EXPORT_SYMBOL_GPL(netfs_extract_user_iter);\n-\n /*\n * Select the span of a bvec iterator we're going to use. Limit it by both maximum\n * size and maximum number of segments. Returns the size of the span in bytes.\ndiff --git a/include/linux/netfs.h b/include/linux/netfs.h\nindex 9d8576a62868..65e39f9b0c10 100644\n--- a/include/linux/netfs.h\n+++ b/include/linux/netfs.h\n@@ -448,9 +448,6 @@ void netfs_put_subrequest(struct netfs_io_subrequest *subreq,\n ssize_t netfs_extract_iter(struct iov_iter *orig, size_t orig_len, size_t max_segs,\n \t\t\t unsigned long long fpos, struct bvecq **_bvecq_head,\n \t\t\t iov_iter_extraction_t extraction_flags);\n-ssize_t netfs_extract_user_iter(struct iov_iter *orig, size_t orig_len,\n-\t\t\t\tstruct iov_iter *new,\n-\t\t\t\tiov_iter_extraction_t extraction_flags);\n size_t netfs_limit_iter(const struct iov_iter *iter, size_t start_offset,\n \t\t\tsize_t max_size, size_t max_segs);\n void netfs_prepare_write_failed(struct netfs_io_subrequest *subreq);\n", "prefixes": [ "21/26" ] }