public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Lee Schermerhorn <lee.schermerhorn@hp.com>,
	Kosaki Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Subject: [PATCH -mm 12/12] pageflag helpers for configed-out flags
Date: Thu, 29 May 2008 16:22:58 -0400	[thread overview]
Message-ID: <20080529202312.803249972@redhat.com> (raw)
In-Reply-To: 20080529202246.322317334@redhat.com

[-- Attachment #1: pageflag-helpers.patch --]
[-- Type: text/plain, Size: 1361 bytes --]

From: Lee Schermerhorn <lee.schermerhorn@hp.com>

Define proper false/noop inline functions for noreclaim page
flags when !defined(CONFIG_NORECLAIM_LRU)

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Signed-off-by: Rik van Riel <riel@redhat.com>

---
 include/linux/page-flags.h |   12 ++++++++++++
 1 file changed, 12 insertions(+)

Index: linux-2.6.26-rc2-mm1/include/linux/page-flags.h
===================================================================
--- linux-2.6.26-rc2-mm1.orig/include/linux/page-flags.h	2008-05-28 09:40:59.000000000 -0400
+++ linux-2.6.26-rc2-mm1/include/linux/page-flags.h	2008-05-28 09:42:35.000000000 -0400
@@ -147,6 +147,18 @@ static inline int Page##uname(struct pag
 #define TESTSCFLAG(uname, lname)					\
 	TESTSETFLAG(uname, lname) TESTCLEARFLAG(uname, lname)
 
+#define SETPAGEFLAG_NOOP(uname)						\
+static inline void SetPage##uname(struct page *page) {  }
+
+#define CLEARPAGEFLAG_NOOP(uname)					\
+static inline void ClearPage##uname(struct page *page) {  }
+
+#define __CLEARPAGEFLAG_NOOP(uname)					\
+static inline void __ClearPage##uname(struct page *page) {  }
+
+#define TESTCLEARFLAG_FALSE(uname)					\
+static inline int TestClearPage##uname(struct page *page) { return 0; }
+
 struct page;	/* forward declaration */
 
 PAGEFLAG(Locked, locked) TESTSCFLAG(Locked, locked)

-- 
All Rights Reversed


      parent reply	other threads:[~2008-05-29 20:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-29 20:22 [PATCH -mm 00/12] VM pageout scalability improvements (V9) Rik van Riel
2008-05-29 20:22 ` [PATCH -mm 01/12] move isolate_lru_page() to vmscan.c Rik van Riel
2008-05-29 20:22 ` [PATCH -mm 02/12] Use an indexed array for LRU variables Rik van Riel
2008-05-29 20:22 ` [PATCH -mm 03/12] use an array for the LRU pagevecs Rik van Riel
2008-05-29 20:22 ` [PATCH -mm 04/12] free swap space on swap-in/activation Rik van Riel
2008-05-29 20:22 ` [PATCH -mm 05/12] define page_file_cache() function Rik van Riel
2008-05-29 20:22 ` [PATCH -mm 06/12] split LRU lists into anon & file sets Rik van Riel
2008-06-01 15:35   ` Balbir Singh
2008-05-29 20:22 ` [PATCH -mm 07/12] second chance replacement for anonymous pages Rik van Riel
2008-06-01 20:04   ` Balbir Singh
2008-05-29 20:22 ` [PATCH -mm 08/12] add some sanity checks to get_scan_ratio Rik van Riel
2008-05-29 20:22 ` [PATCH -mm 09/12] fix pagecache reclaim referenced bit check Rik van Riel
2008-05-29 20:22 ` [PATCH -mm 10/12] add newly swapped in pages to the inactive list Rik van Riel
2008-05-29 20:22 ` [PATCH -mm 11/12] more aggressively use lumpy reclaim Rik van Riel
2008-05-29 20:22 ` Rik van Riel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080529202312.803249972@redhat.com \
    --to=riel@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=lee.schermerhorn@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox