]> www.infradead.org Git - users/hch/xfs.git/commit
bcachefs: add check for missing fragmentation in check_alloc_to_lru_ref()
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 29 Jun 2024 22:35:18 +0000 (18:35 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 29 Jun 2024 22:35:18 +0000 (18:35 -0400)
commitd39881d2da2a621df49118bfe5b594c7e8099aa6
treee7893fcc23020d02ed286bb24664aa292a8fdbc6
parent92e1c29ae803f85d2f50b4450becb258acae4311
bcachefs: add check for missing fragmentation in check_alloc_to_lru_ref()

We need to make sure we're not missing any fragmenation entries in the
LRU BTREE after repairing ALLOC BTREE

Also, use the new bch2_btree_write_buffer_maybe_flush() helper; this was
only working without it before since bucket invalidation (usually)
wasn't happening while fsck was running.

Co-developed-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/lru.c
fs/bcachefs/lru.h