]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bcachefs: Fix evacuate_bucket tracepoint
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 9 Dec 2024 11:18:49 +0000 (06:18 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:18 +0000 (01:36 -0500)
commit4de2c24aa9453564ceb285039e2816bd22fa4ac6
tree80470c422ab7888ea29647d81cc9c3fc77961818
parenteae6c4a6255b03161c5c2c3e3a9cbfb4e22fa025
bcachefs: Fix evacuate_bucket tracepoint

86a494c8eef9 ("bcachefs: Kill bch2_get_next_backpointer()") dropped some
things the tracepoint emitted because bch2_evacuate_bucket() no longer
looks at the alloc key - but we did want at least some of that.

We still no longer look at the alloc key so we can't report on the
fragmentation number, but that's a direct function of dirty_sectors and
a copygc concern anyways - copygc should get its own tracepoint that
includes information from the fragmentation LRU.

But we can report on the number of sectors we moved and the bucket size.

Co-developed-by: Piotr Zalewski <pZ010001011111@proton.me>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/move.c
fs/bcachefs/trace.h