[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1329492398-7631-1-git-send-email-consul.kautuk@gmail.com>
Date: Fri, 17 Feb 2012 10:26:38 -0500
From: Kautuk Consul <consul.kautuk@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Hugh Dickins <hughd@...gle.com>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
Mel Gorman <mgorman@...e.de>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Kautuk Consul <consul.kautuk@...il.com>
Subject: [PATCH 1/2 v2] rmap: Make page_referenced_file and page_referenced_anon inline
Inline the page_referenced_anon and page_referenced_file
functions.
These functions are called only from page_referenced.
Signed-off-by: Kautuk Consul <consul.kautuk@...il.com>
---
mm/rmap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/rmap.c b/mm/rmap.c
index c8454e0..74aff97 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -772,7 +772,7 @@ out:
return referenced;
}
-static int page_referenced_anon(struct page *page,
+static inline int page_referenced_anon(struct page *page,
struct mem_cgroup *memcg,
unsigned long *vm_flags)
{
@@ -821,7 +821,7 @@ static int page_referenced_anon(struct page *page,
*
* This function is only called from page_referenced for object-based pages.
*/
-static int page_referenced_file(struct page *page,
+static inline int page_referenced_file(struct page *page,
struct mem_cgroup *memcg,
unsigned long *vm_flags)
{
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists