Re: [PATCH] mm/page_alloc.c: variable type of 'progress' should be 'unsigned long'

2020-09-15 Thread Xu, Yanfei
On 9/16/20 8:48 AM, Andrew Morton wrote: On Tue, 15 Sep 2020 18:46:20 +0800 wrote: From: Yanfei Xu try_to_free_pages returns the number of pages reclaimed, and the type of returns is 'unsigned long'. So we should use a matched type for storing it. __perform_reclaim() returns an int,

Re: [PATCH] mm/page_alloc.c: variable type of 'progress' should be 'unsigned long'

2020-09-15 Thread Andrew Morton
On Tue, 15 Sep 2020 18:46:20 +0800 wrote: > From: Yanfei Xu > > try_to_free_pages returns the number of pages reclaimed, and the type of > returns is 'unsigned long'. So we should use a matched type for storing > it. > __perform_reclaim() returns an int, so this change is fairly pointless.

[PATCH] mm/page_alloc.c: variable type of 'progress' should be 'unsigned long'

2020-09-15 Thread yanfei.xu
From: Yanfei Xu try_to_free_pages returns the number of pages reclaimed, and the type of returns is 'unsigned long'. So we should use a matched type for storing it. Signed-off-by: Yanfei Xu --- mm/page_alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git