summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorYanfei Xu <yanfei.xu@windriver.com>2020-10-14 01:55:54 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-10-14 03:38:33 +0200
commit2187e17b02036ecd0ee83e225b28b968d3788a71 (patch)
treeeb52b358c40c83a41a57bed0b04266c3f1d2b5bc /mm/page_alloc.c
parentmm/page_alloc.c: clean code by merging two functions (diff)
downloadlinux-2187e17b02036ecd0ee83e225b28b968d3788a71.tar.xz
linux-2187e17b02036ecd0ee83e225b28b968d3788a71.zip
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>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 12bac250c8e4..a105c657be37 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4253,13 +4253,12 @@ EXPORT_SYMBOL_GPL(fs_reclaim_release);
#endif
/* Perform direct synchronous page reclaim */
-static int
+static unsigned long
__perform_reclaim(gfp_t gfp_mask, unsigned int order,
const struct alloc_context *ac)
{
- int progress;
unsigned int noreclaim_flag;
- unsigned long pflags;
+ unsigned long pflags, progress;
cond_resched();