Commit ed80c569 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Optimize bch2_dev_usage_read()



 - add bch2_dev_usage_read_fast(), which doesn't return by value -
   bch_dev_usage is big enough that we don't want the silent memcpy
 - tweak the allocation path to only call bch2_dev_usage_read() once per
   bucket allocated

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 2d485df3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment