Lines Matching refs:bch_dev
207 static void bch2_dev_unlink(struct bch_dev *);
208 static void bch2_dev_free(struct bch_dev *);
210 static int bch2_dev_sysfs_online(struct bch_fs *, struct bch_dev *);
211 static void bch2_dev_io_ref_stop(struct bch_dev *, int);
212 static void __bch2_dev_read_only(struct bch_fs *, struct bch_dev *);
681 struct bch_dev *ca = rcu_dereference_protected(c->devs[i], true); in __bch2_fs_stop()
722 struct bch_dev *ca = rcu_dereference_protected(c->devs[i], true); in bch2_fs_free()
1126 struct bch_dev *ca; in bch2_fs_may_start()
1352 static void bch2_dev_io_ref_stop(struct bch_dev *ca, int rw) in bch2_dev_io_ref_stop()
1366 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj); in bch2_dev_release()
1371 static void bch2_dev_free(struct bch_dev *ca) in bch2_dev_free()
1405 static void __bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_offline()
1426 struct bch_dev *ca = container_of(ref, struct bch_dev, ref); in bch2_dev_ref_complete()
1432 static void bch2_dev_unlink(struct bch_dev *ca) in bch2_dev_unlink()
1452 static int bch2_dev_sysfs_online(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_sysfs_online()
1481 static struct bch_dev *__bch2_dev_alloc(struct bch_fs *c, in __bch2_dev_alloc()
1484 struct bch_dev *ca; in __bch2_dev_alloc()
1534 static void bch2_dev_attach(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_attach()
1553 struct bch_dev *ca = NULL; in bch2_dev_alloc()
1570 static int __bch2_dev_attach_bdev(struct bch_dev *ca, struct bch_sb_handle *sb) in __bch2_dev_attach_bdev()
1618 struct bch_dev *ca; in bch2_dev_attach_bdev()
1654 bool bch2_dev_state_allowed(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_state_allowed()
1698 static void __bch2_dev_read_only(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_only()
1710 static void __bch2_dev_read_write(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_write()
1725 int __bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in __bch2_dev_set_state()
1756 int bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_set_state()
1770 int bch2_dev_remove(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_remove()
1901 struct bch_dev *ca = NULL; in bch2_dev_add()
2053 struct bch_dev *ca; in bch2_dev_online()
2114 int bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_offline()
2136 static int __bch2_dev_resize_alloc(struct bch_dev *ca, u64 old_nbuckets, u64 new_nbuckets) in __bch2_dev_resize_alloc()
2148 int bch2_dev_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets) in bch2_dev_resize()
2250 struct bch_dev *bch2_dev_lookup(struct bch_fs *c, const char *name) in bch2_dev_lookup()
2280 static struct bch_dev *bdev_to_bch_dev(struct bch_fs *c, struct block_device *bdev) in bdev_to_bch_dev()
2305 struct bch_dev *ca = bdev_to_bch_dev(c, bdev); in bch2_fs_bdev_mark_dead()