summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-02-11 01:46:36 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2025-02-11 18:10:32 +0300
commit9f734cd076931fa4d7feb5728e5cd95cde0af114 (patch)
treee7cea71d497a61b9af408bdd9cdce189145682ba /scripts/generate_rust_analyzer.py
parent1e690efa72596a1163dc56709707f459221889d2 (diff)
downloadlinux-9f734cd076931fa4d7feb5728e5cd95cde0af114.tar.xz
bcachefs: Fix want_new_bset() so we write until the end of the btree node
want_new_bset() returns the address of a new bset to initialize if we wish to do so in a btree node - either because the previous one is too big, or because it's been written. The case for 'previous bset was written' was wrong: it's only supposed to check for if we have space in the node for one more block, but because it subtracted the header from the space available it would never initialize a new bset if we were down to the last block in a node. Fixing this results in fewer btree node splits/compactions, which fixes a bug with flushing the journal to go read-only sometimes not terminating or taking excessively long. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions