]> www.infradead.org Git - users/willy/linux.git/commit
bcachefs: Refactor bch2_bset_fix_lookup_table
authorAlan Huang <mmpgouride@gmail.com>
Thu, 15 Aug 2024 15:40:53 +0000 (23:40 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 9 Sep 2024 13:41:49 +0000 (09:41 -0400)
commit94932a0842ccebe413cd8205632a537f275c100d
treec3890d08b1373b071da1ea6d653c0487a6e6bfdd
parentf1625637b85191a0ac6f9ebf2b30d8b335f08547
bcachefs: Refactor bch2_bset_fix_lookup_table

bch2_bset_fix_lookup_table is too complicated to be easily understood,
the comment "l now > where" there is also incorrect when where ==
t->end_offset. This patch therefore refactor the function, the idea is
that when where >= rw_aux_tree(b, t)[t->size - 1].offset, we don't need
to adjust the rw aux tree.

Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bset.c