summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_update.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-07 13:28:20 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:09:56 +0200
commit83ec519aea326beed20dbac1c5a4432215adf35d (patch)
treeab02a7ac92ead644566e19f7755935a6efd27f46 /fs/bcachefs/btree_update.h
parentbcachefs: Verbose on by default when CONFIG_BCACHEFS_DEBUG=y (diff)
downloadlinux-83ec519aea326beed20dbac1c5a4432215adf35d.tar.xz
linux-83ec519aea326beed20dbac1c5a4432215adf35d.zip
bcachefs: When shutting down, flush btree node writes last
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update.h')
-rw-r--r--fs/bcachefs/btree_update.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_update.h b/fs/bcachefs/btree_update.h
index ee1d15931022..46fb4a9ed295 100644
--- a/fs/bcachefs/btree_update.h
+++ b/fs/bcachefs/btree_update.h
@@ -13,6 +13,9 @@ void bch2_btree_node_prep_for_write(struct btree_trans *,
bool bch2_btree_bset_insert_key(struct btree_trans *, struct btree_path *,
struct btree *, struct btree_node_iter *,
struct bkey_i *);
+
+int bch2_btree_node_flush0(struct journal *, struct journal_entry_pin *, u64);
+int bch2_btree_node_flush1(struct journal *, struct journal_entry_pin *, u64);
void bch2_btree_add_journal_pin(struct bch_fs *, struct btree *, u64);
void bch2_btree_insert_key_leaf(struct btree_trans *, struct btree_path *,