diff options
author | Johannes Weiner <[email protected]> | 2015-02-11 15:26:30 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-02-11 17:06:03 -0800 |
commit | 9c608dbe6a0d137f78498a5181eb0cd309f8f067 (patch) | |
tree | e0b2108f4be39dfd81a6376b405e0d0d5fbf3a3f /net/lapb/lapb_subr.c | |
parent | 94737a85f332aee75255960eaa16e89ddfa4c75a (diff) |
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 <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions