Searched refs:io_ref (Results 1 – 19 of 19) sorted by relevance
23 return !percpu_ref_is_zero(&ca->io_ref); in bch2_dev_is_online()151 percpu_ref_put(&ca->io_ref); in bch2_get_next_online_dev()155 !percpu_ref_tryget(&ca->io_ref))) in bch2_get_next_online_dev()276 if (ca && !percpu_ref_tryget(&ca->io_ref)) in bch2_dev_get_ioref()286 percpu_ref_put(&ca->io_ref); in bch2_dev_get_ioref()
247 percpu_ref_get(&ca->io_ref); in read_btree_nodes_worker()269 percpu_ref_put(&ca->io_ref); in read_btree_nodes()274 percpu_ref_get(&ca->io_ref); in read_btree_nodes()283 percpu_ref_put(&ca->io_ref); in read_btree_nodes()
235 percpu_ref_put(&ca->io_ref); in bch2_sb_field_resize_id()886 percpu_ref_put(&ca->io_ref); in write_super_endio()903 percpu_ref_get(&ca->io_ref); in read_back_super()929 percpu_ref_get(&ca->io_ref); in write_one_super()957 percpu_ref_put(&ca->io_ref); in bch2_write_super()960 percpu_ref_get(&ca->io_ref); in bch2_write_super()1119 percpu_ref_put(&(*ca)->io_ref); in bch2_write_super()
1206 percpu_ref_exit(&ca->io_ref); in bch2_dev_free()1218 if (percpu_ref_is_zero(&ca->io_ref)) in __bch2_dev_offline()1224 percpu_ref_kill(&ca->io_ref); in __bch2_dev_offline()1244 struct bch_dev *ca = container_of(ref, struct bch_dev, io_ref); in bch2_dev_io_ref_complete()1338 if (percpu_ref_init(&ca->io_ref, bch2_dev_io_ref_complete, in __bch2_dev_alloc()1404 BUG_ON(!percpu_ref_is_zero(&ca->io_ref)); in __bch2_dev_attach_bdev()1416 percpu_ref_reinit(&ca->io_ref); in __bch2_dev_attach_bdev()1709 !percpu_ref_is_zero(&ca->io_ref)) in bch2_dev_remove()
558 if (ca && percpu_ref_tryget(&ca->io_ref)) { in bch2_target_to_text()560 percpu_ref_put(&ca->io_ref); in bch2_target_to_text()
1898 percpu_ref_put(&ca->io_ref); in bch2_do_discards_work()1915 percpu_ref_put(&ca->io_ref); in bch2_dev_do_discards()1992 percpu_ref_put(&ca->io_ref); in bch2_do_discards_fast_work()2012 percpu_ref_put(&ca->io_ref); in bch2_discard_one_bucket_fast()2157 percpu_ref_put(&ca->io_ref); in bch2_do_invalidates_work()2174 percpu_ref_put(&ca->io_ref); in bch2_dev_do_invalidates()
712 percpu_ref_put(&ca->io_ref); in bch2_read_endio()898 percpu_ref_put(&ca->io_ref); in __bch2_read_extent()915 percpu_ref_put(&ca->io_ref); in __bch2_read_extent()
1176 percpu_ref_put(&ca->io_ref); in CLOSURE_CALLBACK()1211 percpu_ref_tryget(&ca->io_ref)) in bch2_journal_read()1708 percpu_ref_put(&ca->io_ref); in journal_write_endio()1774 percpu_ref_get(&ca->io_ref); in CLOSURE_CALLBACK()
58 percpu_ref_put(&ca->io_ref); in bch2_btree_verify_replica()298 percpu_ref_put(&ca->io_ref); in bch2_btree_node_ondisk_to_text()
51 percpu_ref_put(&bio->ca->io_ref); in nocow_flush_endio()74 if (ca && !percpu_ref_tryget(&ca->io_ref)) in bch2_inode_flush_nocow_writes_async()
749 percpu_ref_put(&ca->io_ref); in ec_block_endio()808 percpu_ref_get(&ca->io_ref); in ec_block_io()815 percpu_ref_put(&ca->io_ref); in ec_block_io()1445 percpu_ref_put(&ca->io_ref); in zero_out_rest_of_ec_bucket()
673 percpu_ref_put(&ca->io_ref); in bch2_write_endio()1372 percpu_ref_put(&bch2_dev_have_ref(c, i->b.inode)->io_ref); in bch2_nocow_write()
515 struct percpu_ref io_ref; member
722 percpu_ref_put(&ca->io_ref); in bch2_ioctl_disk_get_idx()
520 percpu_ref_put(&ca->io_ref); in check_extent_checksum()
1313 percpu_ref_put(&ca->io_ref); in btree_node_read_work()1916 percpu_ref_put(&ca->io_ref); in btree_node_write_endio()
1145 percpu_ref_put(&ca->io_ref); in bch2_trans_mark_dev_sbs_flags()
1148 percpu_ref_put(&ca->io_ref); in bch2_fs_journal_alloc()
2220 percpu_ref_put(&ca->io_ref); in bch2_fs_get_tree()