bcachefs: Allocate some extra room in btree_key_cache_fill()
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 17 Apr 2022 21:50:47 +0000 (17:50 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:32 +0000 (17:09 -0400)
commita729e489ab0805fb93047508fb9439cd1464cf70
tree87d9ebef33d476b8fcb1c5ac35a9176b0995da70
parentb0babf2a34233c651060e54b68fa3cd0b9e7a6e7
bcachefs: Allocate some extra room in btree_key_cache_fill()

If we allocate a buffer that's a bit bigger than necessary the
transaction commit path will be much less likely to have to reallocate -
which requires a transaction restart.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_key_cache.c