ck_rhs: Set size floor to cacheline entries.

ck_pring
Samy Al Bahra 10 years ago
parent f9a127fffb
commit c72686f06b

@ -322,7 +322,7 @@ ck_rhs_map_create(struct ck_rhs *hs, unsigned long entries)
n_entries = ck_internal_power_2(entries); n_entries = ck_internal_power_2(entries);
if (n_entries < CK_RHS_PROBE_L1) if (n_entries < CK_RHS_PROBE_L1)
return NULL; n_entries = CK_RHS_PROBE_L1;
if (hs->mode & CK_RHS_MODE_READ_MOSTLY) if (hs->mode & CK_RHS_MODE_READ_MOSTLY)
size = sizeof(struct ck_rhs_map) + size = sizeof(struct ck_rhs_map) +

Loading…
Cancel
Save