diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-08-04 02:41:44 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:08 +0300 |
commit | b0004d8dfac514f8591b8a45dc470becf3356150 (patch) | |
tree | ab4e7d8ef2cc900870ad8c0939731aaf516f6a84 /fs/bcachefs/btree_types.h | |
parent | a50ed7c8e83e52dbfd54a47b5e123f85f5cd91f1 (diff) | |
download | linux-b0004d8dfac514f8591b8a45dc470becf3356150.tar.xz |
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>
Diffstat (limited to 'fs/bcachefs/btree_types.h')
-rw-r--r-- | fs/bcachefs/btree_types.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_types.h b/fs/bcachefs/btree_types.h index 438ef0c07623..2ca3b1f0236f 100644 --- a/fs/bcachefs/btree_types.h +++ b/fs/bcachefs/btree_types.h @@ -448,7 +448,6 @@ enum btree_insert_ret { /* extent spanned multiple leaf nodes: have to traverse to next node: */ BTREE_INSERT_NEED_TRAVERSE, /* write lock held for too long */ - BTREE_INSERT_NEED_RESCHED, /* leaf node needs to be split */ BTREE_INSERT_BTREE_NODE_FULL, BTREE_INSERT_JOURNAL_RES_FULL, |