Johannes Weiner
9c608dbe6a
mm: memcontrol: simplify soft limit tree init code
...
- No need to test the node for N_MEMORY. node_online() is enough for
node fallback to work in slab, use NUMA_NO_NODE for everything else.
- Remove the BUG_ON() for allocation failure. A NULL pointer crash is
just as descriptive, and the absent return value check is obvious.
- Move local variables to the inner-most blocks.
- Point to the tree structure after its initialized, not before, it's
just more logical that way.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-02-11 17:06:03 -08:00
..
2014-10-18 11:53:51 -07:00
2014-10-29 16:33:15 -07:00
2014-11-13 16:17:06 -08:00
2015-01-20 14:08:31 +01:00
2015-02-11 17:06:03 -08:00
2015-02-11 17:06:02 -08:00
2014-12-13 12:42:48 -08:00
2015-02-10 14:30:31 -08:00
2014-10-09 22:26:00 -04:00
2014-04-07 16:36:15 -07:00
2014-12-13 12:42:49 -08:00
2012-01-03 22:54:56 -05:00
2015-02-10 14:30:30 -08:00
2015-02-10 14:30:30 -08:00
2014-12-10 17:41:08 -08:00
2015-02-11 17:06:01 -08:00
2014-08-06 18:01:22 -07:00
2015-02-11 17:06:00 -08:00
2015-02-11 17:06:02 -08:00
2015-02-11 17:06:01 -08:00
2014-08-06 18:01:19 -07:00
2011-07-26 16:49:47 -07:00
2015-02-11 17:06:02 -08:00
2015-02-10 14:30:31 -08:00
2014-12-08 20:25:23 -05:00
2015-01-06 11:04:29 -08: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
2014-06-06 16:08:17 -07:00
2015-02-10 14:30:31 -08:00
2014-04-03 16:21:01 -07:00
2011-10-31 09:20:12 -04:00
2015-02-10 14:30:31 -08:00
2015-02-10 14:30:30 -08:00
2014-12-13 12:42:46 -08:00
2015-02-11 17:06:03 -08:00
2014-12-10 17:41:05 -08:00
2014-12-13 12:42:48 -08:00
2015-02-10 16:45:56 -08:00
2014-12-19 18:19:19 -08:00
2014-06-06 16:08:17 -07:00
2015-02-11 17:06:01 -08:00
2015-02-10 14:30:31 -08:00
2014-10-13 15:44:12 +02:00
2014-01-27 21:02:39 -08:00
2015-02-10 14:30:31 -08: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-02-10 14:30:31 -08:00
2015-02-10 14:30:31 -08:00
2015-02-10 14:30:31 -08:00
2014-11-13 16:17:06 -08:00
2015-02-10 14:30:30 -08:00
2015-02-11 17:06:03 -08:00
2015-02-11 17:06:03 -08:00
2015-02-11 17:06:02 -08:00
2014-12-13 12:42:48 -08:00
2014-06-14 19:30:48 -05:00
2014-12-10 17:41:05 -08:00
2014-12-13 12:42:48 -08:00
2015-02-11 17:06:00 -08:00
2015-02-05 13:35:29 -08:00
2014-09-02 14:46:05 -04:00
2014-09-02 14:46:02 -04:00
2014-10-29 10:34:34 -04:00
2014-08-29 16:28:15 -07:00
2014-05-06 17:32:49 -04:00
2011-10-31 09:20:11 -04:00
2014-08-06 18:01:15 -07:00
2015-02-11 17:06:00 -08:00
2015-02-11 17:06:00 -08:00
2015-02-10 14:30:34 -08:00
2014-12-13 12:42:53 -08:00
2015-02-10 14:30:34 -08:00
2014-10-09 22:25:50 -04:00
2015-02-10 14:30:30 -08: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
2014-12-10 17:41:09 -08:00
2015-02-10 14:30:31 -08:00
2014-12-10 17:41:09 -08:00
2014-11-07 08:29:25 +11:00
2014-10-09 22:25:50 -04:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:49 -08:00
2014-12-02 17:32:07 -08:00
2015-02-11 17:06:02 -08:00
2015-02-10 14:30:30 -08:00
2014-04-03 16:21:01 -07:00
2014-12-13 12:42:51 -08:00
2014-08-29 16:28:16 -07:00
2014-12-18 19:08:11 -08:00
2014-12-13 12:42:50 -08:00