summaryrefslogtreecommitdiff
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorYang Shi <yang.shi@linux.alibaba.com>2021-09-02 14:59:13 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-03 09:58:16 -0700
commit5ac95884a784e822b8cbe3d4bd6e9f96b3b71e3f (patch)
tree4e2372ca69f3e6596c99e8b3391a2e780e2a0664 /mm/compaction.c
parent884a6e5d1f93b5032e5d6dd2a183f8b3f008416b (diff)
mm/migrate: enable returning precise migrate_pages() success count
Under normal circumstances, migrate_pages() returns the number of pages migrated. In error conditions, it returns an error code. When returning an error code, there is no way to know how many pages were migrated or not migrated. Make migrate_pages() return how many pages are demoted successfully for all cases, including when encountering errors. Page reclaim behavior will depend on this in subsequent patches. Link: https://lkml.kernel.org/r/20210721063926.3024591-3-ying.huang@intel.com Link: https://lkml.kernel.org/r/20210715055145.195411-4-ying.huang@intel.com Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Signed-off-by: "Huang, Ying" <ying.huang@intel.com> Suggested-by: Oscar Salvador <osalvador@suse.de> [optional parameter] Reviewed-by: Yang Shi <shy828301@gmail.com> Reviewed-by: Zi Yan <ziy@nvidia.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Wei Xu <weixugc@google.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: David Hildenbrand <david@redhat.com> Cc: David Rientjes <rientjes@google.com> Cc: Greg Thelen <gthelen@google.com> Cc: Keith Busch <kbusch@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
-rw-r--r--mm/compaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index 621508e0ecd5..61fb64f47a06 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -2398,7 +2398,7 @@ compact_zone(struct compact_control *cc, struct capture_control *capc)
err = migrate_pages(&cc->migratepages, compaction_alloc,
compaction_free, (unsigned long)cc, cc->mode,
- MR_COMPACTION);
+ MR_COMPACTION, NULL);
trace_mm_compaction_migratepages(cc->nr_migratepages, err,
&cc->migratepages);
value='libreoffice-4-2-1'>libreoffice-4-2-1 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2021-05-05update translations for 7.0.6 rc2libreoffice-7-0-6Christian Lohmaier316-3942/+4742
2021-04-20Branch libreoffice-7-0-6Christian Lohmaier0-0/+0
2021-04-20update translations for 7.0.6 rc1Christian Lohmaier659-14236/+21322
2021-03-02update translations for 7.0.5 rc2Christian Lohmaier285-4209/+3688
2021-02-17update translations for 7.0.5 rc1Christian Lohmaier504-12339/+14492
2021-01-30update translations for 7.0Christian Lohmaier1350-45367/+30581
2020-12-08update translations for 7.0.4 rc2Christian Lohmaier203-2173/+2393
2020-11-25update translations for 7.0.4 rc1Christian Lohmaier1019-57675/+54971
2020-10-21update translations for 7.0.3 rc1Christian Lohmaier1041-15705/+18813
2020-09-30update translations for 7.0.2 rc2Christian Lohmaier54-536/+452
2020-09-28update translations for 7.0.2 rc2Christian Lohmaier414-6164/+7035
2020-09-07update translations for 7-0Christian Lohmaier802-12590/+13102
2020-08-27update translations for 7.0.1 rc2Christian Lohmaier233-6499/+5825
2020-08-17update translations for 7.0Christian Lohmaier1084-19897/+20469
2020-07-29update translations for 7.0.0 rc3Christian Lohmaier625-13022/+12070
2020-07-22Updated Slovenian translationAndras Timar8-40/+35
2020-07-15update translations for 7.0.0 rc2Christian Lohmaier228-1806/+1801
2020-07-13update translations for master/7.0Christian Lohmaier1958-22572/+27504
2020-07-06Updated Slovenian translationAndras Timar16-223/+286
2020-07-02update translations for 7.0.0 rc1Christian Lohmaier1936-205855/+232356
2020-06-30Updated Slovenian translationAndras Timar28-1611/+1691
2020-06-26Updated Slovenian translationAndras Timar24-880/+2263
2020-06-24update translations for master/7.0 and add ckb (Central Kurdish) filesChristian Lohmaier1523-61009/+396362
2020-06-17Updated Slovenian translationAndras Timar15-610/+641
2020-06-17update translations for 7.0 beta2Christian Lohmaier1578-119859/+150051
2020-06-03Updated Slovenian translationAndras Timar35-5096/+5555
2020-05-27Branch libreoffice-7-0Christian Lohmaier0-0/+0
2020-05-27update translations for 7.0.0 beta1libreoffice-7-0-branch-pointChristian Lohmaier3075-594270/+615947
2020-05-06update translations for 7.0.0 Alpha1Christian Lohmaier957-35784/+30643
2020-05-03Updated Slovenian translationAndras Timar25-2288/+2023
2020-04-29update translations for masterChristian Lohmaier2498-290070/+318585
2020-04-25Updated Slovenian translationAndras Timar29-1443/+1480
2020-04-17Slovenian fixesAndras Timar3-41/+60
2020-04-16Updated Slovenian translationAndras Timar68-15885/+20873
2020-04-15update translations for masterChristian Lohmaier972-196508/+245850
2020-04-03update translations from weblateChristian Lohmaier