diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-06-06 13:25:28 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-14 19:00:15 -0400 |
commit | 2574e95a8b78ef853100d6889f154883fec989a2 (patch) | |
tree | ddc315624c4ba849ea387100f917f9e8762ea6d6 /fs/bcachefs/bcachefs.h | |
parent | b5597347a5c7182dba80f9fb561c404abb3cead8 (diff) | |
download | linux-stable-2574e95a8b78ef853100d6889f154883fec989a2.tar.gz linux-stable-2574e95a8b78ef853100d6889f154883fec989a2.tar.bz2 linux-stable-2574e95a8b78ef853100d6889f154883fec989a2.zip |
bcachefs: Refactor disk accounting data structures
Break up the percpu counter allocations into individual allocations for
each disk accounting counter; this fixes an issue on large systems where
we have too many replica entries to for the percpu allocator's max
practical size.
Also, use just one eytzinger tree for the normal set of counters and the
gc counters; this simplifies accounting_gc_done() where we need the same
set of counters to be present in both tables.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r-- | fs/bcachefs/bcachefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h index e0e9afb08ef6..ea4bf11fb8dd 100644 --- a/fs/bcachefs/bcachefs.h +++ b/fs/bcachefs/bcachefs.h @@ -742,7 +742,7 @@ struct bch_fs { struct bch_dev __rcu *devs[BCH_SB_MEMBERS_MAX]; - struct bch_accounting_mem accounting[2]; + struct bch_accounting_mem accounting; struct bch_replicas_cpu replicas; struct bch_replicas_cpu replicas_gc; |