diff options
author | KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> | 2009-10-01 15:44:12 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-01 16:11:13 -0700 |
commit | ef8745c1e7fc5413d760b3b958f3fd3a0beaad72 (patch) | |
tree | a1f1998dbcf06e84fe3539192e440e9d1bb876f2 /drivers | |
parent | 4e649152cbaa1aedd01821d200ab9d597fe469e4 (diff) | |
download | blackbird-op-linux-ef8745c1e7fc5413d760b3b958f3fd3a0beaad72.tar.gz blackbird-op-linux-ef8745c1e7fc5413d760b3b958f3fd3a0beaad72.zip |
memcg: reduce check for softlimit excess
In charge/uncharge/reclaim path, usage_in_excess is calculated repeatedly
and it takes res_counter's spin_lock every time.
This patch removes unnecessary calls for res_count_soft_limit_excess.
Reviewed-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions