Skip to content

Commit 2187e17

Browse files
Yanfei Xutorvalds
authored andcommitted
mm/page_alloc.c: __perform_reclaim should return 'unsigned long'
__perform_reclaim()'s single caller expects it to return 'unsigned long', hence change its return value and a local variable to 'unsigned long'. Suggested-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: https://lkml.kernel.org/r/20200916022138.16740-1-yanfei.xu@windriver.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a0622d0 commit 2187e17

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎mm/page_alloc.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4253,13 +4253,12 @@ EXPORT_SYMBOL_GPL(fs_reclaim_release);
42534253
#endif
42544254

42554255
/* Perform direct synchronous page reclaim */
4256-
static int
4256+
static unsigned long
42574257
__perform_reclaim(gfp_t gfp_mask, unsigned int order,
42584258
const struct alloc_context *ac)
42594259
{
4260-
int progress;
42614260
unsigned int noreclaim_flag;
4262-
unsigned long pflags;
4261+
unsigned long pflags, progress;
42634262

42644263
cond_resched();
42654264

0 commit comments

Comments
 (0)