Commit 08c07fea authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Split out extent_update.c

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 085ab693
...@@ -26,6 +26,7 @@ bcachefs-y := \ ...@@ -26,6 +26,7 @@ bcachefs-y := \
ec.o \ ec.o \
error.o \ error.o \
extents.o \ extents.o \
extent_update.o \
fs.o \ fs.o \
fs-common.o \ fs-common.o \
fs-ioctl.o \ fs-ioctl.o \
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "buckets.h" #include "buckets.h"
#include "debug.h" #include "debug.h"
#include "error.h" #include "error.h"
#include "extents.h" #include "extent_update.h"
#include "journal.h" #include "journal.h"
#include "journal_reclaim.h" #include "journal_reclaim.h"
#include "keylist.h" #include "keylist.h"
......
This diff is collapsed.
/* 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 */
This diff is collapsed.
...@@ -433,17 +433,6 @@ enum merge_result bch2_reservation_merge(struct bch_fs *, ...@@ -433,17 +433,6 @@ enum merge_result bch2_reservation_merge(struct bch_fs *,
.key_merge = bch2_reservation_merge, \ .key_merge = bch2_reservation_merge, \
} }
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 *);
void bch2_bkey_mark_replicas_cached(struct bch_fs *, struct bkey_s, void bch2_bkey_mark_replicas_cached(struct bch_fs *, struct bkey_s,
unsigned, unsigned); unsigned, unsigned);
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "clock.h" #include "clock.h"
#include "error.h" #include "error.h"
#include "extents.h" #include "extents.h"
#include "extent_update.h"
#include "fs.h" #include "fs.h"
#include "fs-io.h" #include "fs-io.h"
#include "fsck.h" #include "fsck.h"
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "disk_groups.h" #include "disk_groups.h"
#include "ec.h" #include "ec.h"
#include "error.h" #include "error.h"
#include "extents.h" #include "extent_update.h"
#include "inode.h" #include "inode.h"
#include "io.h" #include "io.h"
#include "journal.h" #include "journal.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment