Subsequent patches need a rough estimate of memory available for page cache. Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx> --- 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 9a9367c..832f86b 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -148,6 +148,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 efe6814..5e302e6 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>