diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-21 14:01:19 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:44 -0400 |
commit | ed80c5699a23c4005ba8e81d4b8fb3e1b922fa40 (patch) | |
tree | 3c2dd5e984480c39efbaa6ea19011bacbeec10d1 /fs/bcachefs/bcachefs.h | |
parent | 2d485df3da368193dafc78be933669d427b7ddf7 (diff) | |
download | lwn-ed80c5699a23c4005ba8e81d4b8fb3e1b922fa40.tar.gz lwn-ed80c5699a23c4005ba8e81d4b8fb3e1b922fa40.zip |
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 'fs/bcachefs/bcachefs.h')
0 files changed, 0 insertions, 0 deletions