summaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorYang Shi2019-03-06 00:48:02 +0100
committerLinus Torvalds2019-03-06 06:07:19 +0100
commit59118c42a60b997d277ad04d2309a6ec30682e5e (patch)
tree0fb0ac1dfa73f1bcc6e75260b26cf6a54dc0c755 /mm/vmscan.c
parentselftests/memfd: add tests for F_SEAL_FUTURE_WRITE seal (diff)
downloadkernel-qcow2-linux-59118c42a60b997d277ad04d2309a6ec30682e5e.tar.gz
kernel-qcow2-linux-59118c42a60b997d277ad04d2309a6ec30682e5e.tar.xz
kernel-qcow2-linux-59118c42a60b997d277ad04d2309a6ec30682e5e.zip
mm: swap: use mem_cgroup_is_root() instead of deferencing css->parent
mem_cgroup_is_root() is the preferred API to check if memcg is root or not. Use it instead of deferencing css->parent. Link: http://lkml.kernel.org/r/1547232913-118148-1-git-send-email-yang.shi@linux.alibaba.com Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com> Acked-by: Michal Hocko <mhocko@suse.com> Cc: Huang Ying <ying.huang@intel.com> Cc: Tim Chen <tim.c.chen@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions