Lines Matching full:bch
520 struct xfs_buf_cache *bch) in xfs_buf_cache_init() argument
522 spin_lock_init(&bch->bc_lock); in xfs_buf_cache_init()
523 return rhashtable_init(&bch->bc_hash, &xfs_buf_hash_params); in xfs_buf_cache_init()
528 struct xfs_buf_cache *bch) in xfs_buf_cache_destroy() argument
530 rhashtable_destroy(&bch->bc_hash); in xfs_buf_cache_destroy()
593 struct xfs_buf_cache *bch, in xfs_buf_lookup() argument
602 bp = rhashtable_lookup(&bch->bc_hash, map, xfs_buf_hash_params); in xfs_buf_lookup()
627 struct xfs_buf_cache *bch, in xfs_buf_find_insert() argument
658 spin_lock(&bch->bc_lock); in xfs_buf_find_insert()
659 bp = rhashtable_lookup_get_insert_fast(&bch->bc_hash, in xfs_buf_find_insert()
663 spin_unlock(&bch->bc_lock); in xfs_buf_find_insert()
669 spin_unlock(&bch->bc_lock); in xfs_buf_find_insert()
680 spin_unlock(&bch->bc_lock); in xfs_buf_find_insert()
727 struct xfs_buf_cache *bch; in xfs_buf_get_map() local
744 bch = xfs_buftarg_buf_cache(btp, pag); in xfs_buf_get_map()
746 error = xfs_buf_lookup(bch, &cmap, flags, &bp); in xfs_buf_get_map()
758 error = xfs_buf_find_insert(btp, bch, pag, &cmap, map, nmaps, in xfs_buf_get_map()
1066 struct xfs_buf_cache *bch = xfs_buftarg_buf_cache(btp, pag); in xfs_buf_rele_cached() local
1085 release = atomic_dec_and_lock(&bp->b_hold, &bch->bc_lock); in xfs_buf_rele_cached()
1110 spin_unlock(&bch->bc_lock); in xfs_buf_rele_cached()
1125 rhashtable_remove_fast(&bch->bc_hash, &bp->b_rhash_head, in xfs_buf_rele_cached()
1127 spin_unlock(&bch->bc_lock); in xfs_buf_rele_cached()