aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorHugh Dickins <[email protected]>2013-02-22 16:36:12 -0800
committerLinus Torvalds <[email protected]>2013-02-23 17:50:24 -0800
commitef53d16cded7f89b3843b7a96970dab897843ea5 (patch)
tree3098af6a91b088212acb5c459ee9af1488cfdfe1 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parent56f31801ccdecb420d0d1fd2bf9f337c355214a9 (diff)
ksm: allocate roots when needed
It is a pity to have MAX_NUMNODES+MAX_NUMNODES tree roots statically allocated, particularly when very few users will ever actually tune merge_across_nodes 0 to use more than 1+1 of those trees. Not a big deal (only 16kB wasted on each machine with CONFIG_MAXSMP), but a pity. Start off with 1+1 statically allocated, then if merge_across_nodes is ever tuned, allocate for nr_node_ids+nr_node_ids. Do not attempt to free up the extra if it's tuned back, that would be a waste of effort. Signed-off-by: Hugh Dickins <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Petr Holasek <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Izik Eidus <[email protected]> Cc: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions