]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Refactor filesystem usage accounting
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 13 Nov 2020 23:36:33 +0000 (18:36 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:49 +0000 (17:08 -0400)
commitf299d57350b2450c522dc7780400ce811f4847ec
tree4775bbb7ebd4eff2c44d8144ec85e121bf9e51f0
parent7bfbbd88024d70947761e482c856522b43a98d87
bcachefs: Refactor filesystem usage accounting

Various filesystem usage counters are kept in percpu counters, with one
set per in flight journal buffer. Right now all the code that deals with
it assumes that there's only two buffers/sets of counters, but the
number of journal bufs is getting increased to 4 in the next patch - so
refactor that code to not assume a constant.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs.h
fs/bcachefs/btree_gc.c
fs/bcachefs/buckets.c
fs/bcachefs/journal_types.h
fs/bcachefs/replicas.c
fs/bcachefs/super-io.c
fs/bcachefs/super.c