* [PATCH v2] mm/page_alloc.c: __perform_reclaim should return 'unsigned long'
@ 2020-09-16 2:21 yanfei.xu
0 siblings, 0 replies; only message in thread
From: yanfei.xu @ 2020-09-16 2:21 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel
From: Yanfei Xu <yanfei.xu@windriver.com>
__perform_reclaim()'s single caller expects it to return 'unsigned long',
hence change its return value and a local variable to 'unsigned long'.
Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/page_alloc.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index fab5e97dc9ca..9c985b0c316c 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4241,13 +4241,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();
--
2.18.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-16 2:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 2:21 [PATCH v2] mm/page_alloc.c: __perform_reclaim should return 'unsigned long' yanfei.xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox