Lines Matching refs:hash
499 xfs_bufhash_t *hash; in _xfs_buf_find() local
509 hash = &btp->bt_hash[hash_long((unsigned long)ioff, btp->bt_hashshift)]; in _xfs_buf_find()
511 spin_lock(&hash->bh_lock); in _xfs_buf_find()
513 list_for_each_entry_safe(bp, n, &hash->bh_list, b_hash_list) { in _xfs_buf_find()
522 list_move(&bp->b_hash_list, &hash->bh_list); in _xfs_buf_find()
531 new_bp->b_hash = hash; in _xfs_buf_find()
532 list_add(&new_bp->b_hash_list, &hash->bh_list); in _xfs_buf_find()
537 spin_unlock(&hash->bh_lock); in _xfs_buf_find()
541 spin_unlock(&hash->bh_lock); in _xfs_buf_find()
859 xfs_bufhash_t *hash = bp->b_hash; in xfs_buf_rele() local
863 if (unlikely(!hash)) { in xfs_buf_rele()
871 if (atomic_dec_and_lock(&bp->b_hold, &hash->bh_lock)) { in xfs_buf_rele()
874 spin_unlock(&hash->bh_lock); in xfs_buf_rele()
877 spin_unlock(&hash->bh_lock); in xfs_buf_rele()
881 spin_unlock(&hash->bh_lock); in xfs_buf_rele()
1364 xfs_bufhash_t *hash; in xfs_wait_buftarg() local
1368 hash = &btp->bt_hash[i]; in xfs_wait_buftarg()
1370 spin_lock(&hash->bh_lock); in xfs_wait_buftarg()
1371 list_for_each_entry_safe(bp, n, &hash->bh_list, b_hash_list) { in xfs_wait_buftarg()
1374 spin_unlock(&hash->bh_lock); in xfs_wait_buftarg()
1384 spin_unlock(&hash->bh_lock); in xfs_wait_buftarg()