Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
memcg: do not check for do_swap_account in mem_cgroup_{read,write,reset}
Since commit 2d11085 ("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 <[email protected]> Cc: Kamezawa Hiroyuki <[email protected]> Cc: Tejun Heo <[email protected]> Acked-by: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information