Lines Matching refs:bucket

87 	struct nfs4_xattr_bucket *bucket;  member
238 entry->bucket = NULL; in nfs4_xattr_alloc_entry()
389 struct nfs4_xattr_bucket *bucket; in nfs4_xattr_discard_cache() local
395 bucket = &cache->buckets[i]; in nfs4_xattr_discard_cache()
397 spin_lock(&bucket->lock); in nfs4_xattr_discard_cache()
398 bucket->draining = true; in nfs4_xattr_discard_cache()
399 hlist_for_each_entry_safe(entry, n, &bucket->hlist, hnode) { in nfs4_xattr_discard_cache()
404 spin_unlock(&bucket->lock); in nfs4_xattr_discard_cache()
512 nfs4_xattr_get_entry(struct nfs4_xattr_bucket *bucket, const char *name) in nfs4_xattr_get_entry() argument
518 hlist_for_each_entry(entry, &bucket->hlist, hnode) { in nfs4_xattr_get_entry()
530 struct nfs4_xattr_bucket *bucket; in nfs4_xattr_hash_add() local
534 bucket = nfs4_xattr_hash_bucket(cache, entry->xattr_name); in nfs4_xattr_hash_add()
535 entry->bucket = bucket; in nfs4_xattr_hash_add()
537 spin_lock(&bucket->lock); in nfs4_xattr_hash_add()
539 if (bucket->draining) { in nfs4_xattr_hash_add()
544 oldentry = nfs4_xattr_get_entry(bucket, entry->xattr_name); in nfs4_xattr_hash_add()
552 hlist_add_head(&entry->hnode, &bucket->hlist); in nfs4_xattr_hash_add()
556 spin_unlock(&bucket->lock); in nfs4_xattr_hash_add()
567 struct nfs4_xattr_bucket *bucket; in nfs4_xattr_hash_remove() local
570 bucket = nfs4_xattr_hash_bucket(cache, name); in nfs4_xattr_hash_remove()
572 spin_lock(&bucket->lock); in nfs4_xattr_hash_remove()
574 entry = nfs4_xattr_get_entry(bucket, name); in nfs4_xattr_hash_remove()
581 spin_unlock(&bucket->lock); in nfs4_xattr_hash_remove()
590 struct nfs4_xattr_bucket *bucket; in nfs4_xattr_hash_find() local
593 bucket = nfs4_xattr_hash_bucket(cache, name); in nfs4_xattr_hash_find()
595 spin_lock(&bucket->lock); in nfs4_xattr_hash_find()
597 entry = nfs4_xattr_get_entry(bucket, name); in nfs4_xattr_hash_find()
601 spin_unlock(&bucket->lock); in nfs4_xattr_hash_find()
759 entry->bucket = &cache->buckets[0]; in nfs4_xattr_cache_set_list()
893 struct nfs4_xattr_bucket *bucket; in entry_lru_isolate() local
898 bucket = entry->bucket; in entry_lru_isolate()
899 cache = bucket->cache; in entry_lru_isolate()
912 if (!spin_trylock(&bucket->lock)) in entry_lru_isolate()
921 spin_unlock(&bucket->lock); in entry_lru_isolate()