linux-bcachefs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/12] Accounting for accurate progress reporting
@ 2025-08-26 22:49 Nikita Ofitserov via B4 Relay
  2025-08-26 22:49 ` [PATCH 01/12] bcachefs: Relax restrictions on the number of accounting counters Nikita Ofitserov via B4 Relay
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Nikita Ofitserov via B4 Relay @ 2025-08-26 22:49 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: linux-bcachefs, Nikita Ofitserov

This patch series introduces new per-btree accounting counters and uses
them for (hopefully) accurate progress reporting in recovery passes.
Also includes various assorted bugfixes.

The first commit ("Relax restrictions on the number of accounting 
counters") is optional, but will likely greatly improve the 
upgrade/tools version mismatch experience. Without it, all bree usage 
accounting will be thrown out and rebuilt on any version mismatch.

The second commit has the format change but does not contain the
upgrade/downgrade table entries. It is intended to be integrated
together with other accounting changes in a single version upgrade.

The last four commits are drive-by fixes/improvements, especially 
"Improve check_allocations pass speed not in fsck", which should make
the future accounting upgrades much faster.

Signed-off-by: Nikita Ofitserov <himikof@gmail.com>
---
Nikita Ofitserov (12):
      bcachefs: Relax restrictions on the number of accounting counters
      bcachefs: Introduce btree node number accounting
      bcachefs: Use explicit node counts in progress reporting
      bcachefs: Introduce btree_leaf_has_triggers_mask
      bcachefs: Better progress reporting for btree iteration without leaves
      bcachefs: Refactor/rename btree_type_has_ptrs
      bcachefs: More accurate progress reporting for inner node iteration
      bcachefs: Fix progress reporting for unknown btrees
      bcachefs: Partially fix old device removal with unknown btrees
      bcachefs: Improve check_allocations pass speed not in fsck
      bcachefs: Fix missing c->usage updates from early recovery
      bcachefs: Fix online hidden (sb+journal) data accounting

 fs/bcachefs/backpointers.c           |  6 ++++--
 fs/bcachefs/btree_gc.c               | 28 ++++++++++++++++--------
 fs/bcachefs/btree_trans_commit.c     |  3 +++
 fs/bcachefs/btree_types.h            | 11 ++++++----
 fs/bcachefs/buckets.c                | 16 +++++++++-----
 fs/bcachefs/disk_accounting.c        | 23 ++++++++++++++------
 fs/bcachefs/disk_accounting.h        | 14 +++++++-----
 fs/bcachefs/disk_accounting_format.h | 10 ++++++++-
 fs/bcachefs/migrate.c                | 18 ++++++++++------
 fs/bcachefs/move.c                   |  2 +-
 fs/bcachefs/progress.c               | 41 ++++++++++++++++++++++++++++++------
 fs/bcachefs/progress.h               | 12 ++++++++++-
 12 files changed, 136 insertions(+), 48 deletions(-)
---
base-commit: 8bf9cabd6109efc82bdccf6c450102d0be3ed3da
change-id: 20250826-better-progress-835d946a3c38

Best regards,
-- 
Nikita Ofitserov



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-08-27 17:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26 22:49 [PATCH 00/12] Accounting for accurate progress reporting Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 01/12] bcachefs: Relax restrictions on the number of accounting counters Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 02/12] bcachefs: Introduce btree node number accounting Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 03/12] bcachefs: Use explicit node counts in progress reporting Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 04/12] bcachefs: Introduce btree_leaf_has_triggers_mask Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 05/12] bcachefs: Better progress reporting for btree iteration without leaves Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 06/12] bcachefs: Refactor/rename btree_type_has_ptrs Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 07/12] bcachefs: More accurate progress reporting for inner node iteration Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 08/12] bcachefs: Fix progress reporting for unknown btrees Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 09/12] bcachefs: Partially fix old device removal with " Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 10/12] bcachefs: Improve check_allocations pass speed not in fsck Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 11/12] bcachefs: Fix missing c->usage updates from early recovery Nikita Ofitserov via B4 Relay
2025-08-26 22:49 ` [PATCH 12/12] bcachefs: Fix online hidden (sb+journal) data accounting Nikita Ofitserov via B4 Relay
2025-08-27 17:17 ` [PATCH 00/12] Accounting for accurate progress reporting Kent Overstreet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).