Thread (20 messages) 20 messages, 5 authors, 2007-02-15

Re: [PATCH 4/7] Logic to move mlocked pages

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2007-02-15 05:33:21

On Wed, 14 Feb 2007 17:25:10 -0800 (PST) Christoph Lameter [off-list ref] wrote:
quoted hunk ↗ jump to hunk
--- linux-2.6.20.orig/mm/migrate.c	2007-02-14 17:07:44.000000000 -0800
+++ linux-2.6.20/mm/migrate.c	2007-02-14 17:08:54.000000000 -0800
@@ -58,6 +58,13 @@
 			else
 				del_page_from_inactive_list(zone, page);
 			list_add_tail(&page->lru, pagelist);
+		} else
+		if (PageMlocked(page)) {
+			ret = 0;
+			get_page(page);
+			ClearPageMlocked(page);
+			list_add_tail(&page->lru, pagelist);
+			__dec_zone_state(zone, NR_MLOCK);
 		}
 		spin_unlock_irq(&zone->lru_lock);
argh.  Please change your scripts to use `diff -p'.

Why does whatever-funtion-this-is do the get_page() there?  Looks odd.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help