Spotted bogus looking alloc entries that were also being incorrectly repaired.

Turns out bcachefs has no validation or repair code in the fragmentation portion
of the LRU btree.

I don't know how your perfectly rational mind missed some basic repair code 
Kent.

copygc_get_buckets() was taking a full 60s to finish, Not sure if this is the
issue, but it's a good start.

Now can you review this code like I asked you to on Tuesday? Mr "I look at your
code when you ask me to" Kent?

Daniel Hill (3):
  bcachefs: alloc_v4_invalid() now checks fragmenation for consistency
  bcachefs: update fragmenation_lru in alloc_write_key()
  bcachefs: add check for missing fragmentation in
    check_alloc_to_lru_ref()

 fs/bcachefs/alloc_background.c | 44 ++++++++++++++++++++++++++++++++++
 fs/bcachefs/btree_gc.c         |  5 +++-
 fs/bcachefs/sb-errors_types.h  |  3 ++-
 3 files changed, 50 insertions(+), 2 deletions(-)

-- 
2.43.0


Reply via email to