diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-21 21:01:19 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:44 +0300 |
commit | ed80c5699a23c4005ba8e81d4b8fb3e1b922fa40 (patch) | |
tree | 3c2dd5e984480c39efbaa6ea19011bacbeec10d1 /Documentation/locking | |
parent | 2d485df3da368193dafc78be933669d427b7ddf7 (diff) | |
download | linux-ed80c5699a23c4005ba8e81d4b8fb3e1b922fa40.tar.xz |
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: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'Documentation/locking')
0 files changed, 0 insertions, 0 deletions