diff options
author | 2021-07-14 21:26:49 -0700 | |
---|---|---|
committer | 2021-07-15 10:13:49 -0700 | |
commit | e5c15cea339115edf99dc92282865f173cf84510 (patch) | |
tree | a1eae9d24bb14b5e06e7ac0f49a4a9e407563cb0 /include | |
parent | mm/page_alloc: avoid page allocator recursion with pagesets.lock held (diff) | |
download | linux-e5c15cea339115edf99dc92282865f173cf84510.tar.gz linux-e5c15cea339115edf99dc92282865f173cf84510.tar.bz2 linux-e5c15cea339115edf99dc92282865f173cf84510.zip |
mm/page_alloc: correct return value when failing at preparing
If the array passed in is already partially populated, we should return
"nr_populated" even failing at preparing arguments stage.
Link: https://lkml.kernel.org/r/20210713152100.10381-3-mgorman@techsingularity.net
Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Link: https://lore.kernel.org/r/20210709102855.55058-1-yanfei.xu@windriver.com
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions