summaryrefslogtreecommitdiff
path: root/LICENSES
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2018-11-17 13:35:24 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2018-11-19 07:24:44 +1100
commit3d1797b7896d5fd49cf9cba1110d4bee3d8829bb (patch)
tree87e675fceaea2cc4e2bc713c7c6ac2b5da16bd61 /LICENSES
parent2752f29f4593edc3a739be4fd4bd1ea3719983b6 (diff)
downloadlinux-next-3d1797b7896d5fd49cf9cba1110d4bee3d8829bb.tar.gz
vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n
fa5e084e43eb ("vmscan: do not unconditionally treat zones that fail zone_reclaim() as full") changed the return value of node_reclaim(). The original return value 0 means NODE_RECLAIM_SOME after this commit. While the return value of node_reclaim() when CONFIG_NUMA is n is not changed. This will leads to call zone_watermark_ok() again. This patch fixes the return value by adjusting to NODE_RECLAIM_NOSCAN. Since node_reclaim() is only called in page_alloc.c, move it to mm/internal.h. Link: http://lkml.kernel.org/r/20181113080436.22078-1-richard.weiyang@gmail.com Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Cc: Mel Gorman <mgorman@techsingularity.net> Acked-by: Michal Hocko <mhocko@suse.com> Reviewed-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions