Vladimir Davydov
adbe427b92
memcg: zap mem_cgroup_lookup()
...
mem_cgroup_lookup() is a wrapper around mem_cgroup_from_id(), which
checks that id != 0 before issuing the function call. Today, there is
no point in this additional check apart from optimization, because there
is no css with id <= 0, so that css_from_id, called by
mem_cgroup_from_id, will return NULL for any id <= 0.
Since mem_cgroup_from_id is only called from mem_cgroup_lookup, let us
zap mem_cgroup_lookup, substituting calls to it with mem_cgroup_from_id
and moving the check if id > 0 to css_from_id.
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com >
Acked-by: Michal Hocko <mhocko@suse.cz >
Cc: Johannes Weiner <hannes@cmpxchg.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2015-04-15 16:35:16 -07:00
..
2015-03-12 18:46:08 -07:00
2015-02-17 16:12:34 -08:00
2014-10-29 16:33:15 -07:00
2014-11-13 16:17:06 -08:00
2015-04-14 16:49:03 -07:00
2015-04-14 16:49:00 -07:00
2015-04-14 16:49:04 -07:00
2015-04-14 16:49:00 -07:00
2015-04-14 16:49:01 -07:00
2014-12-13 12:42:48 -08:00
2015-02-11 17:06:04 -08:00
2014-10-09 22:26:00 -04:00
2014-04-07 16:36:15 -07:00
2015-02-16 17:56:03 -08:00
2015-04-14 16:49:17 -07:00
2014-12-10 17:41:08 -08:00
2015-04-14 16:49:00 -07:00
2014-08-06 18:01:22 -07:00
2015-04-14 16:49:03 -07:00
2015-02-11 17:06:02 -08:00
2015-04-14 16:49:06 -07:00
2014-08-06 18:01:19 -07:00
2015-04-14 16:49:01 -07:00
2015-02-10 14:30:31 -08:00
2015-04-14 16:49:00 -07:00
2015-01-08 15:10:52 -08:00
2014-10-09 22:25:50 -04:00
2014-06-06 16:08:18 -07:00
2015-02-13 21:21:41 -08:00
2015-02-10 14:30:31 -08:00
2015-02-12 18:54:10 -08:00
2015-02-16 17:56:03 -08:00
2015-04-14 16:49:06 -07:00
2015-04-14 16:49:00 -07:00
2015-04-15 16:35:16 -07:00
2015-04-14 16:49:00 -07:00
2015-02-12 18:54:11 -08:00
2015-04-14 16:49:03 -07:00
2015-04-14 16:49:03 -07:00
2015-04-14 16:49:06 -07:00
2015-04-14 16:49:06 -07:00
2015-04-14 16:49:05 -07:00
2015-02-11 17:06:06 -08:00
2015-04-14 16:49:00 -07:00
2015-02-12 18:54:11 -08:00
2015-04-14 16:49:00 -07:00
2014-02-21 08:50:17 +01:00
2014-11-13 13:46:09 +11:00
2015-02-11 17:06:02 -08:00
2015-03-25 16:20:31 -07:00
2015-04-06 17:50:59 -04:00
2015-02-10 14:30:31 -08:00
2014-11-13 16:17:06 -08:00
2015-03-12 18:46:08 -07:00
2015-04-15 16:35:16 -07:00
2015-04-14 16:49:04 -07:00
2015-02-11 17:06:02 -08:00
2014-12-13 12:42:48 -08:00
2015-03-25 20:28:11 -04:00
2015-03-25 16:20:30 -07:00
2015-02-11 17:06:07 -08:00
2015-04-14 16:49:01 -07:00
2015-03-25 16:20:30 -07:00
2014-09-02 14:46:05 -04:00
2014-09-02 14:46:02 -04:00
2015-03-24 13:41:54 -04:00
2015-02-12 18:54:08 -08:00
2015-04-11 22:27:12 -04:00
2015-01-20 14:03:04 -07:00
2015-03-25 16:20:30 -07:00
2015-04-11 22:24:41 -04:00
2015-02-13 21:21:41 -08:00
2015-04-14 16:49:03 -07:00
2015-02-12 18:54:10 -08:00
2015-04-14 16:48:59 -07:00
2015-04-14 16:48:59 -07:00
2014-01-21 16:19:47 -08:00
2014-04-07 16:35:54 -07:00
2014-12-10 17:41:09 -08:00
2015-01-20 14:03:05 -07:00
2015-02-12 13:50:21 -08:00
2014-12-10 17:41:09 -08:00
2015-04-14 16:49:01 -07:00
2015-02-13 21:21:35 -08:00
2014-12-13 12:42:48 -08:00
2015-04-14 16:49:04 -07:00
2014-12-02 17:32:07 -08:00
2015-02-12 18:54:28 -08:00
2015-02-11 17:06:07 -08:00
2015-02-12 18:54:10 -08:00
2015-02-12 18:54:12 -08:00
2015-02-12 18:54:12 -08:00
2015-02-12 18:54:12 -08:00
2015-02-12 18:54:12 -08:00