summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/alloc_foreground.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-07-21 23:12:39 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:43 +0200
commit74ed7e560b794369adf87e0d310453bc78f4b273 (patch)
tree4ba81323571e27cdb7bdf3d6f372132d86418035 /fs/bcachefs/alloc_foreground.h
parentbcachefs: Delete unused arguments (diff)
downloadlinux-74ed7e560b794369adf87e0d310453bc78f4b273.tar.xz
linux-74ed7e560b794369adf87e0d310453bc78f4b273.zip
bcachefs: Don't let copygc buckets be stolen by other threads
And assorted other copygc fixes. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_foreground.h')
-rw-r--r--fs/bcachefs/alloc_foreground.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/bcachefs/alloc_foreground.h b/fs/bcachefs/alloc_foreground.h
index dc8574a1a76a..c658295cb8e0 100644
--- a/fs/bcachefs/alloc_foreground.h
+++ b/fs/bcachefs/alloc_foreground.h
@@ -133,13 +133,6 @@ static inline struct write_point_specifier writepoint_ptr(struct write_point *wp
return (struct write_point_specifier) { .v = (unsigned long) wp };
}
-static inline void writepoint_init(struct write_point *wp,
- enum bch_data_type type)
-{
- mutex_init(&wp->lock);
- wp->type = type;
-}
-
void bch2_fs_allocator_foreground_init(struct bch_fs *);
#endif /* _BCACHEFS_ALLOC_FOREGROUND_H */