use CACHE_LINE_SIZE instead of hardcoding 128 for lock pad

pointed out by Marius Nuennerich and jhb@
This commit is contained in:
kmacy 2010-03-17 20:00:22 +00:00
parent bc081f5e7d
commit bf3a24dd0d

View File

@ -568,7 +568,7 @@ static void arc_evict_ghost(arc_state_t *state, spa_t *spa, int64_t bytes);
* Hash table routines
*/
#define HT_LOCK_PAD 128
#define HT_LOCK_PAD CACHE_LINE_SIZE
struct ht_lock {
kmutex_t ht_lock;