]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
memcg: do not check for do_swap_account in mem_cgroup_{read,write,reset}
authorMichal Hocko <mhocko@suse.cz>
Wed, 20 Mar 2013 04:07:27 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:33:54 +0000 (16:33 +1100)
commit8ad94fede449a539d3825984b5098808e2a039fc
treec02513099f9819cc50205bb75ddd8c8169098b6e
parent9e6fd2c0b3b580b0dc7f82d66ebd1fe0a7e3e431
memcg: do not check for do_swap_account in mem_cgroup_{read,write,reset}

Since 2d11085e ("memcg: do not create memsw files if swap accounting is
disabled") memsw files are created only if memcg swap accounting is
enabled so it doesn't make any sense to check for it explicitly in
mem_cgroup_read(), mem_cgroup_write() and mem_cgroup_reset().

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Cc: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c