commit | a9c0b125d8162bf648f7a004f70d4cff6e84ddd9 | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kent.overstreet@gmail.com> | Wed Jan 12 00:49:23 2022 -0500 |
committer | Kent Overstreet <kent.overstreet@linux.dev> | Sun Oct 22 17:09:23 2023 -0400 |
tree | 7f31f104a3990f81d89be13eb18604c67377d1bd | |
parent | 80bf2f345411b9952a984b6105cd860500b01228 [diff] |
bcachefs: Improve btree_key_cache_flush_pos() btree_key_cache_flush_pos() uses BTREE_ITER_CACHED_NOFILL - but it wasn't checking for !ck->valid. It does check for the entry being dirty, so it shouldn't matter, but this refactor it a bit and adds and assertion. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>