The patch titled memcg: avoid reclaim_stat oops when disabled has been removed from the -mm tree. Its filename was memcg-add-zone_reclaim_stat-reclaim-stat-trivial-fixes-fix.patch This patch was dropped because it was folded into memcg-add-zone_reclaim_stat.patch The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: memcg: avoid reclaim_stat oops when disabled From: Hugh Dickins <hugh@xxxxxxxxxxx> mem_cgroup_get_reclaim_stat_from_page() oopses in page_cgroup_zoneinfo() when you boot with cgroup_disabled=memory: it needs to check for that. Signed-off-by: Hugh Dickins <hugh@xxxxxxxxxxx> Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> Cc: Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff -puN mm/memcontrol.c~memcg-add-zone_reclaim_stat-reclaim-stat-trivial-fixes-fix mm/memcontrol.c --- a/mm/memcontrol.c~memcg-add-zone_reclaim_stat-reclaim-stat-trivial-fixes-fix +++ a/mm/memcontrol.c @@ -473,9 +473,14 @@ struct zone_reclaim_stat *mem_cgroup_get struct zone_reclaim_stat * mem_cgroup_get_reclaim_stat_from_page(struct page *page) { - struct page_cgroup *pc = lookup_page_cgroup(page); - struct mem_cgroup_per_zone *mz = page_cgroup_zoneinfo(pc); + struct page_cgroup *pc; + struct mem_cgroup_per_zone *mz; + if (mem_cgroup_disabled()) + return NULL; + + pc = lookup_page_cgroup(page); + mz = page_cgroup_zoneinfo(pc); if (!mz) return NULL; _ Patches currently in -mm which might be from hugh@xxxxxxxxxxx are origin.patch memcg-handle-swap-caches.patch memcg-swap-cgroup-for-remembering-usage.patch memcg-memswap-controller-core.patch memcg-revert-gfp-mask-fix.patch memcg-check-group-leader-fix.patch memcg-memoryswap-controller-fix-limit-check.patch memcg-swapout-refcnt-fix.patch memcg-hierarchy-avoid-unnecessary-reclaim.patch inactive_anon_is_low-move-to-vmscan.patch mm-introduce-zone_reclaim-struct.patch mm-add-zone-nr_pages-helper-function.patch mm-make-get_scan_ratio-safe-for-memcg.patch memcg-add-null-check-to-page_cgroup_zoneinfo.patch memcg-add-inactive_anon_is_low.patch memcg-add-mem_cgroup_zone_nr_pages.patch memcg-add-zone_reclaim_stat.patch memcg-add-zone_reclaim_stat-reclaim-stat-trivial-fixes-fix.patch memcg-remove-mem_cgroup_cal_reclaim.patch memcg-show-reclaim-stat.patch memcg-rename-scan-global-lru.patch memcg-protect-prev_priority.patch memcg-swappiness.patch memcg-explain-details-and-test-document.patch memcg-fix-swap-accounting-leak-v3.patch memcg-fix-swap-accounting-leak-doc-fix.patch memcg-fix-shmems-swap-accounting.patch prio_tree-debugging-patch.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html