Skip to content

Commit

Permalink
memcg: remove warning when CONFIG_DEBUG_VM=n
Browse files Browse the repository at this point in the history
mm/memcontrol.c:318: warning: `mem_cgroup_is_obsolete' defined but not used

[[email protected]: simplify as suggested by Balbir]
Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Reviewed-by: Balbir Singh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
hkamezawa authored and torvalds committed Apr 13, 2009
1 parent 3d26dcf commit a8031cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ static int __mem_cgroup_try_charge(struct mm_struct *mm,
if (unlikely(!mem))
return 0;

VM_BUG_ON(mem_cgroup_is_obsolete(mem));
VM_BUG_ON(!mem || mem_cgroup_is_obsolete(mem));

while (1) {
int ret;
Expand Down

0 comments on commit a8031cb

Please sign in to comment.