diff options
-rw-r--r-- | mm/memcontrol.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 0595e2b184a2..b94cd24c5baa 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -2118,10 +2118,6 @@ static void __mem_cgroup_commit_charge(struct mem_cgroup *mem, | |||
2118 | { | 2118 | { |
2119 | int nr_pages = page_size >> PAGE_SHIFT; | 2119 | int nr_pages = page_size >> PAGE_SHIFT; |
2120 | 2120 | ||
2121 | /* try_charge() can return NULL to *memcg, taking care of it. */ | ||
2122 | if (!mem) | ||
2123 | return; | ||
2124 | |||
2125 | lock_page_cgroup(pc); | 2121 | lock_page_cgroup(pc); |
2126 | if (unlikely(PageCgroupUsed(pc))) { | 2122 | if (unlikely(PageCgroupUsed(pc))) { |
2127 | unlock_page_cgroup(pc); | 2123 | unlock_page_cgroup(pc); |