Lines Matching refs:bucket
87 struct nfs4_xattr_bucket *bucket; member
238 entry->bucket = NULL; in nfs4_xattr_alloc_entry()
388 struct nfs4_xattr_bucket *bucket; in nfs4_xattr_discard_cache() local
394 bucket = &cache->buckets[i]; in nfs4_xattr_discard_cache()
396 spin_lock(&bucket->lock); in nfs4_xattr_discard_cache()
397 bucket->draining = true; in nfs4_xattr_discard_cache()
398 hlist_for_each_entry_safe(entry, n, &bucket->hlist, hnode) { in nfs4_xattr_discard_cache()
403 spin_unlock(&bucket->lock); in nfs4_xattr_discard_cache()
511 nfs4_xattr_get_entry(struct nfs4_xattr_bucket *bucket, const char *name) in nfs4_xattr_get_entry() argument
517 hlist_for_each_entry(entry, &bucket->hlist, hnode) { in nfs4_xattr_get_entry()
529 struct nfs4_xattr_bucket *bucket; in nfs4_xattr_hash_add() local
533 bucket = nfs4_xattr_hash_bucket(cache, entry->xattr_name); in nfs4_xattr_hash_add()
534 entry->bucket = bucket; in nfs4_xattr_hash_add()
536 spin_lock(&bucket->lock); in nfs4_xattr_hash_add()
538 if (bucket->draining) { in nfs4_xattr_hash_add()
543 oldentry = nfs4_xattr_get_entry(bucket, entry->xattr_name); in nfs4_xattr_hash_add()
551 hlist_add_head(&entry->hnode, &bucket->hlist); in nfs4_xattr_hash_add()
555 spin_unlock(&bucket->lock); in nfs4_xattr_hash_add()
566 struct nfs4_xattr_bucket *bucket; in nfs4_xattr_hash_remove() local
569 bucket = nfs4_xattr_hash_bucket(cache, name); in nfs4_xattr_hash_remove()
571 spin_lock(&bucket->lock); in nfs4_xattr_hash_remove()
573 entry = nfs4_xattr_get_entry(bucket, name); in nfs4_xattr_hash_remove()
580 spin_unlock(&bucket->lock); in nfs4_xattr_hash_remove()
589 struct nfs4_xattr_bucket *bucket; in nfs4_xattr_hash_find() local
592 bucket = nfs4_xattr_hash_bucket(cache, name); in nfs4_xattr_hash_find()
594 spin_lock(&bucket->lock); in nfs4_xattr_hash_find()
596 entry = nfs4_xattr_get_entry(bucket, name); in nfs4_xattr_hash_find()
600 spin_unlock(&bucket->lock); in nfs4_xattr_hash_find()
758 entry->bucket = &cache->buckets[0]; in nfs4_xattr_cache_set_list()
892 struct nfs4_xattr_bucket *bucket; in entry_lru_isolate() local
897 bucket = entry->bucket; in entry_lru_isolate()
898 cache = bucket->cache; in entry_lru_isolate()
911 if (!spin_trylock(&bucket->lock)) in entry_lru_isolate()
920 spin_unlock(&bucket->lock); in entry_lru_isolate()