Lines Matching refs:bch
517 struct xfs_buf_cache *bch)
519 spin_lock_init(&bch->bc_lock);
520 return rhashtable_init(&bch->bc_hash, &xfs_buf_hash_params);
525 struct xfs_buf_cache *bch)
527 rhashtable_destroy(&bch->bc_hash);
590 struct xfs_buf_cache *bch,
599 bp = rhashtable_lookup(&bch->bc_hash, map, xfs_buf_hash_params);
624 struct xfs_buf_cache *bch,
655 spin_lock(&bch->bc_lock);
656 bp = rhashtable_lookup_get_insert_fast(&bch->bc_hash,
660 spin_unlock(&bch->bc_lock);
666 spin_unlock(&bch->bc_lock);
677 spin_unlock(&bch->bc_lock);
724 struct xfs_buf_cache *bch;
741 bch = xfs_buftarg_buf_cache(btp, pag);
743 error = xfs_buf_lookup(bch, &cmap, flags, &bp);
755 error = xfs_buf_find_insert(btp, bch, pag, &cmap, map, nmaps,
1063 struct xfs_buf_cache *bch = xfs_buftarg_buf_cache(btp, pag);
1082 release = atomic_dec_and_lock(&bp->b_hold, &bch->bc_lock);
1107 spin_unlock(&bch->bc_lock);
1122 rhashtable_remove_fast(&bch->bc_hash, &bp->b_rhash_head,
1124 spin_unlock(&bch->bc_lock);