diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-06-13 23:07:36 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-15 01:00:15 +0200 |
commit | b0d3ab531f07b6fc22ed9b84e7b9a5ff9be90df9 (patch) | |
tree | 567841ec65bd0bc955324f1cd68b9908eb0af8d1 /fs/bcachefs/bcachefs.h | |
parent | bcachefs: per_cpu_sum() (diff) | |
download | linux-b0d3ab531f07b6fc22ed9b84e7b9a5ff9be90df9.tar.xz linux-b0d3ab531f07b6fc22ed9b84e7b9a5ff9be90df9.zip |
bcachefs: Reduce the scope of gc_lock
gc_lock is now only for synchronization between check_alloc_info and
interior btree updates - nothing else
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r-- | fs/bcachefs/bcachefs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h index ea4bf11fb8dd..91361a167dcd 100644 --- a/fs/bcachefs/bcachefs.h +++ b/fs/bcachefs/bcachefs.h @@ -538,8 +538,8 @@ struct bch_dev { /* * Buckets: * Per-bucket arrays are protected by c->mark_lock, bucket_lock and - * gc_lock, for device resize - holding any is sufficient for access: - * Or rcu_read_lock(), but only for dev_ptr_stale(): + * gc_gens_lock, for device resize - holding any is sufficient for + * access: Or rcu_read_lock(), but only for dev_ptr_stale(): */ struct bucket_array __rcu *buckets_gc; struct bucket_gens __rcu *bucket_gens; |