Lines Matching defs:c
85 void bch2_print_str(struct bch_fs *c, const char *str) in bch2_print_str()
123 void __bch2_print(struct bch_fs *c, const char *fmt, ...) in __bch2_print()
189 struct bch_fs *c; in bch2_dev_to_fs() local
210 struct bch_fs *c; in __bch2_uuid_to_fs() local
223 struct bch_fs *c; in bch2_uuid_to_fs() local
251 static void __bch2_fs_read_only(struct bch_fs *c) in __bch2_fs_read_only()
303 struct bch_fs *c = container_of(writes, struct bch_fs, writes); in bch2_writes_disabled() local
310 void bch2_fs_read_only(struct bch_fs *c) in bch2_fs_read_only()
391 struct bch_fs *c = in bch2_fs_read_only_work() local
399 static void bch2_fs_read_only_async(struct bch_fs *c) in bch2_fs_read_only_async()
404 bool bch2_fs_emergency_read_only(struct bch_fs *c) in bch2_fs_emergency_read_only()
415 bool bch2_fs_emergency_read_only_locked(struct bch_fs *c) in bch2_fs_emergency_read_only_locked()
426 static int __bch2_fs_read_write(struct bch_fs *c, bool early) in __bch2_fs_read_write()
511 int bch2_fs_read_write(struct bch_fs *c) in bch2_fs_read_write()
523 int bch2_fs_read_write_early(struct bch_fs *c) in bch2_fs_read_write_early()
534 static void __bch2_fs_free(struct bch_fs *c) in __bch2_fs_free()
616 struct bch_fs *c = container_of(kobj, struct bch_fs, kobj); in bch2_fs_release() local
621 void __bch2_fs_stop(struct bch_fs *c) in __bch2_fs_stop()
657 void bch2_fs_free(struct bch_fs *c) in bch2_fs_free()
684 void bch2_fs_stop(struct bch_fs *c) in bch2_fs_stop()
690 static int bch2_fs_online(struct bch_fs *c) in bch2_fs_online()
742 struct bch_fs *c; in bch2_fs_alloc() local
987 static void print_mount_opts(struct bch_fs *c) in print_mount_opts()
1020 static bool bch2_fs_may_start(struct bch_fs *c) in bch2_fs_may_start()
1054 int bch2_fs_start(struct bch_fs *c) in bch2_fs_start()
1130 static int bch2_dev_may_add(struct bch_sb *sb, struct bch_fs *c) in bch2_dev_may_add()
1282 static void __bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_offline()
1343 static int bch2_dev_sysfs_online(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_sysfs_online()
1372 static struct bch_dev *__bch2_dev_alloc(struct bch_fs *c, in __bch2_dev_alloc()
1426 static void bch2_dev_attach(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_attach()
1440 static int bch2_dev_alloc(struct bch_fs *c, unsigned dev_idx) in bch2_dev_alloc()
1501 static int bch2_dev_attach_bdev(struct bch_fs *c, struct bch_sb_handle *sb) in bch2_dev_attach_bdev()
1546 bool bch2_dev_state_allowed(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_state_allowed()
1590 static void __bch2_dev_read_only(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_only()
1602 static void __bch2_dev_read_write(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_write()
1617 int __bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in __bch2_dev_set_state()
1648 int bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_set_state()
1662 int bch2_dev_remove(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_remove()
1769 int bch2_dev_add(struct bch_fs *c, const char *path) in bch2_dev_add()
1887 int bch2_dev_online(struct bch_fs *c, const char *path) in bch2_dev_online()
1952 int bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_offline()
1974 int bch2_dev_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets) in bch2_dev_resize()
2039 struct bch_dev *bch2_dev_lookup(struct bch_fs *c, const char *name) in bch2_dev_lookup()
2056 struct bch_fs *c = holder->c; in bdev_get_fs() local
2069 static struct bch_dev *bdev_to_bch_dev(struct bch_fs *c, struct block_device *bdev) in bdev_to_bch_dev()
2079 struct bch_fs *c = bdev_get_fs(bdev); in bch2_fs_bdev_mark_dead() local
2122 struct bch_fs *c = bdev_get_fs(bdev); in bch2_fs_bdev_sync() local
2158 struct bch_fs *c = NULL; in bch2_fs_open() local