diff options
author | Yang Shi <yang.shi@linux.alibaba.com> | 2020-04-02 06:10:02 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-04-02 18:35:31 +0200 |
commit | d8a1c03ff797050b4310bd34b5ef5c0d5c7491e6 (patch) | |
tree | 4ac8ad5edffb4788e798dcfc5e5afed3b9544a0d /security/smack/Kconfig | |
parent | mm: vmpressure: don't need call kfree if kstrndup fails (diff) | |
download | linux-d8a1c03ff797050b4310bd34b5ef5c0d5c7491e6.tar.xz linux-d8a1c03ff797050b4310bd34b5ef5c0d5c7491e6.zip |
mm: vmpressure: use mem_cgroup_is_root API
Use mem_cgroup_is_root() API to check if memcg is root memcg instead of
open coding.
Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: David Rientjes <rientjes@google.com>
Link: http://lkml.kernel.org/r/1581398649-125989-2-git-send-email-yang.shi@linux.alibaba.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/smack/Kconfig')
0 files changed, 0 insertions, 0 deletions