summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2008-02-07 09:14:19 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-07 17:42:20 +0100
commit3be91277e754c7db04eae145ba622b3a3e3ad96d (patch)
tree347aa7cd186ed87ba7585d63e6584c94fffc2fd6 /mm/shmem.c
parentMemory controller use rcu_read_lock() in mem_cgroup_cache_charge() (diff)
downloadlinux-3be91277e754c7db04eae145ba622b3a3e3ad96d.tar.xz
linux-3be91277e754c7db04eae145ba622b3a3e3ad96d.zip
memcgroup: tidy up mem_cgroup_charge_common
Tidy up mem_cgroup_charge_common before extending it. Adjust some comments, but mainly clean up its loop: I've an aversion to loops full of continues, then a break or a goto at the bottom. And the is_atomic test should be on the __GFP_WAIT bit, not GFP_ATOMIC bits. Signed-off-by: Hugh Dickins <hugh@veritas.com> Cc: Balbir Singh <balbir@linux.vnet.ibm.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions