Lines Matching refs:bch_dev
187 static void bch2_dev_unlink(struct bch_dev *);
188 static void bch2_dev_free(struct bch_dev *);
190 static int bch2_dev_sysfs_online(struct bch_fs *, struct bch_dev *);
191 static void __bch2_dev_read_only(struct bch_fs *, struct bch_dev *);
662 struct bch_dev *ca = rcu_dereference_protected(c->devs[i], true); in bch2_fs_free()
1181 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj); in bch2_dev_release()
1186 static void bch2_dev_free(struct bch_dev *ca) in bch2_dev_free()
1213 static void __bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_offline()
1236 struct bch_dev *ca = container_of(ref, struct bch_dev, ref); in bch2_dev_ref_complete()
1244 struct bch_dev *ca = container_of(ref, struct bch_dev, io_ref); in bch2_dev_io_ref_complete()
1249 static void bch2_dev_unlink(struct bch_dev *ca) in bch2_dev_unlink()
1269 static int bch2_dev_sysfs_online(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_sysfs_online()
1298 static struct bch_dev *__bch2_dev_alloc(struct bch_fs *c, in __bch2_dev_alloc()
1301 struct bch_dev *ca; in __bch2_dev_alloc()
1351 static void bch2_dev_attach(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_attach()
1368 struct bch_dev *ca = NULL; in bch2_dev_alloc()
1388 static int __bch2_dev_attach_bdev(struct bch_dev *ca, struct bch_sb_handle *sb) in __bch2_dev_attach_bdev()
1423 struct bch_dev *ca; in bch2_dev_attach_bdev()
1466 bool bch2_dev_state_allowed(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_state_allowed()
1512 struct bch_dev *ca; in bch2_fs_may_start()
1544 static void __bch2_dev_read_only(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_only()
1554 static void __bch2_dev_read_write(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_write()
1565 int __bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in __bch2_dev_set_state()
1596 int bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_set_state()
1610 int bch2_dev_remove(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_remove()
1720 struct bch_dev *ca = NULL; in bch2_dev_add()
1839 struct bch_dev *ca; in bch2_dev_online()
1900 int bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_offline()
1922 int bch2_dev_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets) in bch2_dev_resize()
1990 struct bch_dev *bch2_dev_lookup(struct bch_fs *c, const char *name) in bch2_dev_lookup()