dm bufio: intelligently size dm_buffer_cache's buffer_trees
authorMike Snitzer <snitzer@kernel.org>
Mon, 27 Mar 2023 18:30:46 +0000 (14:30 -0400)
committerMike Snitzer <snitzer@kernel.org>
Thu, 30 Mar 2023 19:57:51 +0000 (15:57 -0400)
commit1e84c4b7322d44a5b7d7f83eced1f60cc0ecf1a4
treeb87893ab832c7d86229fe3eb599d9157d2a430d6
parent36c18b86390824f93ed1580500df9698978e2006
dm bufio: intelligently size dm_buffer_cache's buffer_trees

Size the dm_buffer_cache's number of buffer_tree structs using
dm_num_hash_locks().

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-bufio.c