Message ID | 20241216161253.37687-1-willy@infradead.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A81F2E7717F for <linux-mm@archiver.kernel.org>; Mon, 16 Dec 2024 16:12:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3D53A6B00B6; Mon, 16 Dec 2024 11:12:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 385116B00B8; Mon, 16 Dec 2024 11:12:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 24C746B00B9; Mon, 16 Dec 2024 11:12:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 0754B6B00B6 for <linux-mm@kvack.org>; Mon, 16 Dec 2024 11:12:59 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 77BB5A07AB for <linux-mm@kvack.org>; Mon, 16 Dec 2024 16:12:58 +0000 (UTC) X-FDA: 82901314650.01.C6D1135 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf24.hostedemail.com (Postfix) with ESMTP id E6742180017 for <linux-mm@kvack.org>; Mon, 16 Dec 2024 16:12:52 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=PtVxuleJ; dmarc=none; spf=none (imf24.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734365549; a=rsa-sha256; cv=none; b=B7UDCHlk0PhjDWrmsozkca7kccV03TgYuZz2NFhiZmdCJ03AlwRPsiRWWrqx/TIG4o9mAd 9R+PLfGZHbpYw1oVyUu1nE14OG1Hz9K/Wkh14YUjZ5NXMuDch2vuVGHcVisKOXokr3+QpZ 8g9+zWwUTqlQgAjYf0TZj93CBNDHUgg= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=PtVxuleJ; dmarc=none; spf=none (imf24.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734365549; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=k/Aikfa9qgkLbilqbJTekFzoNO7qFSXxxQWLfy6xpXk=; b=VaQfVLFJ9s+m3/plUtEmA3JJNpuy+rjV8vW/Z1nYRGwXsD9Vh5YpXdp9tF90lXcqrc1jFp YZQHNy2ZEKKVLuORF/5PmwZ0vkoestBSlWB2Z0bZYIy2GC8XiizoiqkYMPcoHPIeVGruEI no4JhrLklRD3E5G8XV8mygaiDmIVa3Y= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=k/Aikfa9qgkLbilqbJTekFzoNO7qFSXxxQWLfy6xpXk=; b=PtVxuleJ6rp1rMQGfqDVmcqz+k gQMKozdCOS9VDdQ2vtIB09uBqqJiCqSLfCH0iD/fkCkXhdnNa/BtFb5i9YXBbNXGBt5EKP3DHb+WN OXZcyJuaM0QDGL5exG/xpomzumJr61FERAFi+CqNOxxxrIiilEUhDSx6p/AK/W1zz6lbGAuc0zOGu dM5UZmxFY/6qiXQGfmuREPgEE/23isCMv8INXILRgFLO3j4L1g+BvGFnSBSWyiTm9r/4Gt8xyqHws UPgV5EAoNKqOjjn9/gf9iM0w9yUaRNI22DEr16VYHGres0kauRlCrjo6zSV+Q5qRjZGwhxRi/J/Ub 3QInib0A==; Received: from willy by casper.infradead.org with local (Exim 4.98 #2 (Red Hat Linux)) id 1tNDiI-000000009of-1wco; Mon, 16 Dec 2024 16:12:54 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, David Howells <dhowells@redhat.com>, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH] iov_iter: Remove setting of page->index Date: Mon, 16 Dec 2024 16:12:50 +0000 Message-ID: <20241216161253.37687-1-willy@infradead.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: pnnnkp41ieojanxikuzt4y9ufzfaqny9 X-Rspam-User: X-Rspamd-Queue-Id: E6742180017 X-Rspamd-Server: rspam08 X-HE-Tag: 1734365572-631466 X-HE-Meta: U2FsdGVkX18Lr29nVEbQPAPMSR/FLDIboZzpBhRv/eC45Po/D6Mcu08EF5dQC7G2oTNujTG7ysPr2k+PSZ3wpNMFUnKKI1oA9LK7MGL8l2utBgvGjQtby1n+phBs6LV9Va2EuhipF9nC/xaizLldUTowZ9TQtzXIrp59KpiVVkibwZtxcW6i6Z+IQbbZNnk54leu+imw/nbP/mnxJIbZ3+HuZBXPjrI5mAf/Nt6ghFGlkFNGm0E2EZgtoqOkCR3O74uzwu1yMjYW6p5f6D1529mfGtF+P2sk/oUCtCJUTZJeISEGLXRKObUMsV86X6WgFHcUHYcJnkJ9OK+6480QfgpWxOC3Pudzv5AOrjh6vRaGv3hb74oQPJindtOjFjK27alTiT4icdCo1a2d8L/0IH+cKqSUjb/t5FSXEZW21uX0l9w6qYhVOgc5EdeRSR+XrXrSL4KnFqJgTEcU8w9uRmJnObHru0TwLlnMgTtRWFQK6uNT2cMxCPQBS31VdJvmLt579ak8EuB9w38OrZR6U+Eu6lISmDubKlneCvlcz03oaFO7jqlWPL8q830oM8bvuZdRtwJl9Np50rrn+IRF8VuY5zqhr+1KLYQwI6G1VHqtOLjZNgCNlJhpce1urUfO1g9lded2ex/agyhO8uEaZVvmD00Ja8ezNOABY5INe3/1j7NJrAaL1ddgtrk0Y7ICsd7/3TzfJuJR/c9Fnk1LSNeqG32uAa2iXe5NOBN3Vl6OVGrXjgToTKeqCY9W5UQUd/nwkeFN8mkfHiCqM0tYMXMwEOn0cDu0nBFpUHkkW4dSmtpLcJ8Ner4oZcm715KDcVb7CB/8A0Vm/RMYHH6/EZrnk5lASJWIy+/RWLY6UKEX5w6VTAlXmNZ5vO6gfF7qSbdKYuLP+rR6JzkBgPd8Pp2fT2EOIFmvMxumE1kvrp9+G7+RoVRdjT+Lz+aL1z3vbYQGNcbE0Rj18ML+Bfs SbmRMEBI Zwp6/g+Erq+tkk1zcPy9tlELCMntQM6g/JwxCfS65OgoVRKqb8nHWTXjv3t7p/dupAXm7Pr9qJwegsmnTGNr62lpsLTMNAQz233GLjl7Nkjq5es+ohqYkJdF3ZSKz85Dic8e7S6f5zJGcHGTZnescw1IDTkVM7cbm4zzTMH1kx3NXwwSCHIwwT2zuqRY3JNvEQtRKgcx4uTQm18JEiZD7l/Uklhnw8L/xD+KJtYX3jupPZEjRNDEKyhDPThxVz34D9WeeOghjmRtcBTBAV2HI63nCkEa3Zc3Ga6+C X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
iov_iter: Remove setting of page->index
|
expand
|
diff --git a/lib/kunit_iov_iter.c b/lib/kunit_iov_iter.c index 13e15687675a..497d86e039f6 100644 --- a/lib/kunit_iov_iter.c +++ b/lib/kunit_iov_iter.c @@ -63,9 +63,6 @@ static void *__init iov_kunit_create_buffer(struct kunit *test, KUNIT_ASSERT_EQ(test, got, npages); } - for (int i = 0; i < npages; i++) - pages[i]->index = i; - buffer = vmap(pages, npages, VM_MAP | VM_MAP_PUT_PAGES, PAGE_KERNEL); KUNIT_ASSERT_NOT_ERR_OR_NULL(test, buffer);
Nothing actually checks page->index, so just remove it. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- lib/kunit_iov_iter.c | 3 --- 1 file changed, 3 deletions(-)