]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Factor out btree_key_can_insert()
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 3 Aug 2018 23:41:44 +0000 (19:41 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:08 +0000 (17:08 -0400)
commitb0004d8dfac514f8591b8a45dc470becf3356150
treeab4e7d8ef2cc900870ad8c0939731aaf516f6a84
parenta50ed7c8e83e52dbfd54a47b5e123f85f5cd91f1
bcachefs: Factor out btree_key_can_insert()

working on getting rid of all the reasons bch2_insert_fixup_extent() can
fail/stop partway, which is needed for other refactorings.

One of the reasons we could have to bail out is if we're splitting a
compressed extent we might need to add to our disk reservation - but we
can check that before actually starting the insert.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_types.h
fs/bcachefs/btree_update_leaf.c
fs/bcachefs/extents.c
fs/bcachefs/extents.h