diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-12-16 16:12:50 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-01-12 20:21:14 -0800 |
commit | 123f5d5ff28a6a5bef0c8c77953648da84c39d3e (patch) | |
tree | 9f3adfe8f05475001a2cd2294e4b2e75f30956cf | |
parent | e7606f4a03d5c84a32a7a2ada4270279079ee1fc (diff) |
iov_iter: remove setting of page->index
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>
-rw-r--r-- | lib/kunit_iov_iter.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); |