summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/io.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-10-09 18:11:00 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:29 +0200
commit2925fc49b3303ee7733cf9f6cba6a59a5b8a5e4b (patch)
tree22e8bfd43f84b6b7135f6489d6d74e1c3abfbb5f /fs/bcachefs/io.h
parentbcachefs: Kill some dependencies on ei_inode (diff)
downloadlinux-2925fc49b3303ee7733cf9f6cba6a59a5b8a5e4b.tar.xz
linux-2925fc49b3303ee7733cf9f6cba6a59a5b8a5e4b.zip
bcachefs: Split out bchfs_extent_update()
The next few patches are going to be more moving the logic around i_size/i_sectors updates to io.c, and better separating the Linux VFS specific code from core bcachefs code, to better support the fuse port. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io.h')
-rw-r--r--fs/bcachefs/io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/io.h b/fs/bcachefs/io.h
index c6f5ae717cf3..e53f9ecc082d 100644
--- a/fs/bcachefs/io.h
+++ b/fs/bcachefs/io.h
@@ -58,6 +58,9 @@ static inline struct workqueue_struct *index_update_wq(struct bch_write_op *op)
: op->c->wq;
}
+int bch2_extent_update(struct btree_trans *, struct btree_iter *,
+ struct bkey_i *, struct disk_reservation *,
+ u64 *, u64, s64 *);
int bch2_write_index_default(struct bch_write_op *);
static inline void bch2_write_op_init(struct bch_write_op *op, struct bch_fs *c,