Re: [patch 18/19] account mlocked pages

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rik van Riel <riel@...>
Cc: <linux-kernel@...>, <linux-mm@...>, Nick Piggin <npiggin@...>, Lee Schermerhorn <lee.schermerhorn@...>
Date: Friday, January 11, 2008 - 8:51 am

* Rik van Riel <riel@redhat.com> [2008-01-08 15:59:57]:

The following patch is required to compile the code with
CONFIG_NORECLAIM enabled and CONFIG_NORECLAIM_MLOCK disabled.

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>

diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index c8ccf8f..fb08ee8 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -88,6 +88,8 @@ enum zone_stat_item {
 	NR_NORECLAIM,	/*  "     "     "   "       "         */
 #ifdef CONFIG_NORECLAIM_MLOCK
 	NR_MLOCK,		/* mlock()ed pages found and moved off LRU */
+#else
+	NR_MLOCK=NR_ACTIVE_FILE,	/* avoid compiler errors... */
 #endif
 #else
 	NR_NORECLAIM=NR_ACTIVE_FILE,	/* avoid compiler errors in dead code */

-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 18/19] account mlocked pages, Rik van Riel, (Tue Jan 8, 4:59 pm)
Re: [patch 18/19] account mlocked pages, Balbir Singh, (Fri Jan 11, 8:51 am)
Re: [patch 18/19] account mlocked pages, Rik van Riel, (Sun Jan 13, 1:18 am)