linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iov_iter: Remove setting of page->index
@ 2024-12-16 16:12 Matthew Wilcox (Oracle)
  0 siblings, 0 replies; only message in thread
From: Matthew Wilcox (Oracle) @ 2024-12-16 16:12 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Matthew Wilcox (Oracle), David Howells, linux-fsdevel, linux-mm

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(-)

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);
 
-- 
2.45.2



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-16 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-16 16:12 [PATCH] iov_iter: Remove setting of page->index Matthew Wilcox (Oracle)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox