[RFC PATCH 18/25] mm/zsmalloc: convert free_handles() to use zsdesc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Convert free_handles() to use zsdesc.

Signed-off-by: Hyeonggon Yoo <42.hyeyoo@xxxxxxxxx>
---
 mm/zsmalloc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index dbc404045487..b58821b3494b 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -1123,14 +1123,14 @@ static void free_handles(struct zs_pool *pool, struct size_class *class,
 		struct zspage *zspage)
 {
 	int obj_idx = 0;
-	struct page *page = get_first_page(zspage);
+	struct zsdesc *zsdesc = get_first_zsdesc(zspage);
 	unsigned long handle;
 
 	while (1) {
-		handle = find_deferred_handle_obj(class, page_zsdesc(page), &obj_idx);
+		handle = find_deferred_handle_obj(class, zsdesc, &obj_idx);
 		if (!handle) {
-			page = get_next_page(page);
-			if (!page)
+			zsdesc = get_next_zsdesc(zsdesc);
+			if (!zsdesc)
 				break;
 			obj_idx = 0;
 			continue;
-- 
2.25.1





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux