]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: remove some redundant checks
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 17 Jun 2009 23:27:15 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:47 +0000 (13:03 -0700)
commitf2456d7c5bcd66206513d5dc4d69bfc79afac136
treec3bdab2f288e4c5a843ea07e0f8938a821ab848a
parentd6110145988eb620552f3c91fc23f172e81f8eab
memcg: remove some redundant checks

We don't need to check do_swap_account in the case that the function which
checks do_swap_account will never get called if do_swap_account == 0.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c
mm/page_cgroup.c