summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/extent_update.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-11-15 21:52:28 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:32 +0200
commit08c07fea7b437f0a841f85cc9b670b60dacd85cf (patch)
tree278d64703656939e47e339e1cf1846b8df659c34 /fs/bcachefs/extent_update.h
parentbcachefs: Rework of cut_front & cut_back (diff)
downloadlinux-08c07fea7b437f0a841f85cc9b670b60dacd85cf.tar.xz
linux-08c07fea7b437f0a841f85cc9b670b60dacd85cf.zip
bcachefs: Split out extent_update.c
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/extent_update.h')
-rw-r--r--fs/bcachefs/extent_update.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/fs/bcachefs/extent_update.h b/fs/bcachefs/extent_update.h
new file mode 100644
index 000000000000..89d18e4b6758
--- /dev/null
+++ b/fs/bcachefs/extent_update.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _BCACHEFS_EXTENT_UPDATE_H
+#define _BCACHEFS_EXTENT_UPDATE_H
+
+#include "bcachefs.h"
+
+int bch2_extent_atomic_end(struct btree_iter *, struct bkey_i *,
+ struct bpos *);
+int bch2_extent_trim_atomic(struct bkey_i *, struct btree_iter *);
+int bch2_extent_is_atomic(struct bkey_i *, struct btree_iter *);
+
+enum btree_insert_ret
+bch2_extent_can_insert(struct btree_trans *, struct btree_insert_entry *,
+ unsigned *);
+void bch2_insert_fixup_extent(struct btree_trans *,
+ struct btree_insert_entry *);
+
+#endif /* _BCACHEFS_EXTENT_UPDATE_H */