aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt3sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorHugh Dickins <[email protected]>2013-02-22 16:35:03 -0800
committerLinus Torvalds <[email protected]>2013-02-23 17:50:19 -0800
commite850dcf530a470b6115344ee00acf766d824db53 (patch)
tree67a41971578dbb7241daf21d2f2c331c50a9dda0 /drivers/scsi/mpt3sas/mpi/mpi2_raid.h
parentf00dc0ee5a8e7fd513b05a2446c26be203c05004 (diff)
ksm: trivial tidyups
Add NUMA() and DO_NUMA() macros to minimize blight of #ifdef CONFIG_NUMAs (but indeed we don't want to expand struct rmap_item by nid when not NUMA). Add comment, remove "unsigned" from rmap_item->nid, as "int nid" elsewhere. Define ksm_merge_across_nodes 1U when #ifndef NUMA to help optimizing out. Use ?: in get_kpfn_nid(). Adjust a few comments noticed in ongoing work. Leave stable_tree_insert()'s rb_linkage until after the node has been set up, as unstable_tree_search_insert() does: ksm_thread_mutex and page lock make either way safe, but we're going to copy and I prefer this precedent. Signed-off-by: Hugh Dickins <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Petr Holasek <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Izik Eidus <[email protected]> Cc: Gerald Schaefer <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions