Re: [RESEND PATCH v2] mm/vmscan.c: wrap five parameters into writeback_stats for reducing the stack consumption

2014-06-25 Thread Chen Yucong
On Fri, 2014-06-13 at 13:58 +0800, Chen Yucong wrote: > shrink_page_list() has too many arguments that have already reached ten. > Some of those arguments and temporary variables introduces extra 80 bytes > on the stack. This patch wraps five parameters into writeback_stats and > removes > some

Re: [RESEND PATCH v2] mm/vmscan.c: wrap five parameters into writeback_stats for reducing the stack consumption

2014-06-25 Thread Chen Yucong
On Fri, 2014-06-13 at 13:58 +0800, Chen Yucong wrote: shrink_page_list() has too many arguments that have already reached ten. Some of those arguments and temporary variables introduces extra 80 bytes on the stack. This patch wraps five parameters into writeback_stats and removes some

Re: [RESEND PATCH v2] mm/vmscan.c: wrap five parameters into writeback_stats for reducing the stack consumption

2014-06-13 Thread Johannes Weiner
On Fri, Jun 13, 2014 at 09:47:39PM +0800, Chen Yucong wrote: > Hi all, > > On Fri, 2014-06-13 at 13:58 +0800, Chen Yucong wrote: > > shrink_page_list() has too many arguments that have already reached ten. > > Some of those arguments and temporary variables introduces extra 80 bytes > > on the

Re: [RESEND PATCH v2] mm/vmscan.c: wrap five parameters into writeback_stats for reducing the stack consumption

2014-06-13 Thread Chen Yucong
Hi all, On Fri, 2014-06-13 at 13:58 +0800, Chen Yucong wrote: > shrink_page_list() has too many arguments that have already reached ten. > Some of those arguments and temporary variables introduces extra 80 bytes > on the stack. This patch wraps five parameters into writeback_stats and > removes

[RESEND PATCH v2] mm/vmscan.c: wrap five parameters into writeback_stats for reducing the stack consumption

2014-06-13 Thread Chen Yucong
shrink_page_list() has too many arguments that have already reached ten. Some of those arguments and temporary variables introduces extra 80 bytes on the stack. This patch wraps five parameters into writeback_stats and removes some temporary variables, thus making the relative functions to consume

[RESEND PATCH v2] mm/vmscan.c: wrap five parameters into writeback_stats for reducing the stack consumption

2014-06-13 Thread Chen Yucong
shrink_page_list() has too many arguments that have already reached ten. Some of those arguments and temporary variables introduces extra 80 bytes on the stack. This patch wraps five parameters into writeback_stats and removes some temporary variables, thus making the relative functions to consume

Re: [RESEND PATCH v2] mm/vmscan.c: wrap five parameters into writeback_stats for reducing the stack consumption

2014-06-13 Thread Chen Yucong
Hi all, On Fri, 2014-06-13 at 13:58 +0800, Chen Yucong wrote: shrink_page_list() has too many arguments that have already reached ten. Some of those arguments and temporary variables introduces extra 80 bytes on the stack. This patch wraps five parameters into writeback_stats and removes

Re: [RESEND PATCH v2] mm/vmscan.c: wrap five parameters into writeback_stats for reducing the stack consumption

2014-06-13 Thread Johannes Weiner
On Fri, Jun 13, 2014 at 09:47:39PM +0800, Chen Yucong wrote: Hi all, On Fri, 2014-06-13 at 13:58 +0800, Chen Yucong wrote: shrink_page_list() has too many arguments that have already reached ten. Some of those arguments and temporary variables introduces extra 80 bytes on the stack. This