]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iov_iter: remove setting of page->index
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 16 Dec 2024 16:12:50 +0000 (16:12 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 13 Jan 2025 04:21:14 +0000 (20:21 -0800)
Nothing actually checks page->index, so just remove it.

Link: https://lkml.kernel.org/r/20241216161253.37687-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/kunit_iov_iter.c

index 13e15687675a84b7bf92a08513d8f05f6b3ea04e..497d86e039f64c7070a3d38bc27ddaee1260cd5a 100644 (file)
@@ -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);