Skip to content
Commit 36c18b86 authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm bufio: prepare to intelligently size dm_buffer_cache's buffer_trees



Add num_locks member to dm_buffer_cache struct and use it rather than
the NR_LOCKS magic value (64).

Next commit will size the dm_buffer_cache's buffer_trees according to
dm_num_hash_locks().

Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 0bac3f2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment