From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756992Ab3HFWqc (ORCPT ); Tue, 6 Aug 2013 18:46:32 -0400 Received: from zene.cmpxchg.org ([85.214.230.12]:52345 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756780Ab3HFWpG (ORCPT ); Tue, 6 Aug 2013 18:45:06 -0400 From: Johannes Weiner To: linux-mm@kvack.org Cc: Andi Kleen , Andrea Arcangeli , Andrew Morton , Greg Thelen , Christoph Hellwig , Hugh Dickins , Jan Kara , KOSAKI Motohiro , Mel Gorman , Minchan Kim , Peter Zijlstra , Rik van Riel , Michel Lespinasse , Seth Jennings , Roman Gushchin , Ozgun Erdogan , Metin Doslu , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [patch 7/9] mm: make global_dirtyable_memory() available to other mm code Date: Tue, 6 Aug 2013 18:44:08 -0400 Message-Id: <1375829050-12654-8-git-send-email-hannes@cmpxchg.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1375829050-12654-1-git-send-email-hannes@cmpxchg.org> References: <1375829050-12654-1-git-send-email-hannes@cmpxchg.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Subsequent patches need a rough estimate of memory available for page cache. Signed-off-by: Johannes Weiner --- include/linux/writeback.h | 1 + mm/page-writeback.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 4e198ca..4c26df7 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -154,6 +154,7 @@ struct ctl_table; int dirty_writeback_centisecs_handler(struct ctl_table *, int, void __user *, size_t *, loff_t *); +unsigned long global_dirtyable_memory(void); void global_dirty_limits(unsigned long *pbackground, unsigned long *pdirty); unsigned long bdi_dirty_limit(struct backing_dev_info *bdi, unsigned long dirty); diff --git a/mm/page-writeback.c b/mm/page-writeback.c index d374b29..60376ad 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -231,7 +231,7 @@ static unsigned long highmem_dirtyable_memory(unsigned long total) * Returns the global number of pages potentially available for dirty * page cache. This is the base value for the global dirty limits. */ -static unsigned long global_dirtyable_memory(void) +unsigned long global_dirtyable_memory(void) { unsigned long x; -- 1.8.3.2 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Weiner Subject: [patch 7/9] mm: make global_dirtyable_memory() available to other mm code Date: Tue, 6 Aug 2013 18:44:08 -0400 Message-ID: <1375829050-12654-8-git-send-email-hannes@cmpxchg.org> References: <1375829050-12654-1-git-send-email-hannes@cmpxchg.org> Cc: Andi Kleen , Andrea Arcangeli , Andrew Morton , Greg Thelen , Christoph Hellwig , Hugh Dickins , Jan Kara , KOSAKI Motohiro , Mel Gorman , Minchan Kim , Peter Zijlstra , Rik van Riel , Michel Lespinasse , Seth Jennings , Roman Gushchin , Ozgun Erdogan , Metin Doslu , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: linux-mm@kvack.org Return-path: In-Reply-To: <1375829050-12654-1-git-send-email-hannes@cmpxchg.org> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org Subsequent patches need a rough estimate of memory available for page cache. Signed-off-by: Johannes Weiner --- include/linux/writeback.h | 1 + mm/page-writeback.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 4e198ca..4c26df7 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -154,6 +154,7 @@ struct ctl_table; int dirty_writeback_centisecs_handler(struct ctl_table *, int, void __user *, size_t *, loff_t *); +unsigned long global_dirtyable_memory(void); void global_dirty_limits(unsigned long *pbackground, unsigned long *pdirty); unsigned long bdi_dirty_limit(struct backing_dev_info *bdi, unsigned long dirty); diff --git a/mm/page-writeback.c b/mm/page-writeback.c index d374b29..60376ad 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -231,7 +231,7 @@ static unsigned long highmem_dirtyable_memory(unsigned long total) * Returns the global number of pages potentially available for dirty * page cache. This is the base value for the global dirty limits. */ -static unsigned long global_dirtyable_memory(void) +unsigned long global_dirtyable_memory(void) { unsigned long x; -- 1.8.3.2 -- 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: email@kvack.org