Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752667Ab2BQO2V (ORCPT ); Fri, 17 Feb 2012 09:28:21 -0500 Received: from mail-pz0-f46.google.com ([209.85.210.46]:62857 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751310Ab2BQO2U (ORCPT ); Fri, 17 Feb 2012 09:28:20 -0500 From: Kautuk Consul To: Andrew Morton , Peter Zijlstra , Hugh Dickins , KAMEZAWA Hiroyuki , Mel Gorman Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kautuk Consul Subject: [PATCH 1/2] rmap: Staticize page_referenced_file and page_referenced_anon Date: Fri, 17 Feb 2012 09:27:49 -0500 Message-Id: <1329488869-7270-1-git-send-email-consul.kautuk@gmail.com> X-Mailer: git-send-email 1.7.5.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1173 Lines: 39 Staticize the page_referenced_anon and page_referenced_file functions. These functions are called only from page_referenced. Signed-off-by: Kautuk Consul --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/