#ifndef CPUS_H #define CPUS_H #include static inline int get_number_cpus(void) { return sysconf(_SC_NPROCESSORS_CONF); } static inline int get_number_cpus_online(void) { return sysconf(_SC_NPROCESSORS_ONLN); } #endif /* CPUS_H */ e' title='Atom feed' href='https://git.distanz.ch/cgit.cgi/linux/net-next.git/atom/?h=nds-private-remove' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2016-08-22 21:14:02 -0700
committerShaohua Li <shli@fb.com>2016-08-24 10:21:53 -0700
commit45c91d808ff989d950e260dab9f89e8f4a3c9c2c (patch)
tree6799f63ff421f2e9288d59e319d366ca56b8c069
parent5f9d1fde7d54a5d5fd8cccbee9c9c31474fcdcf2 (diff)
raid5: avoid unnecessary bio data set
bio_reset doesn't change bi_io_vec and bi_max_vecs, so we don't need to set them every time. bi_private will be set before the bio is dispatched. Signed-off-by: Shaohua Li <shli@fb.com>