Lines Matching defs:bucket

87 	struct nfs4_xattr_bucket *bucket;
120 * 1. inode i_lock or bucket lock
238 entry->bucket = NULL;
388 struct nfs4_xattr_bucket *bucket;
394 bucket = &cache->buckets[i];
396 spin_lock(&bucket->lock);
397 bucket->draining = true;
398 hlist_for_each_entry_safe(entry, n, &bucket->hlist, hnode) {
403 spin_unlock(&bucket->lock);
511 nfs4_xattr_get_entry(struct nfs4_xattr_bucket *bucket, const char *name)
517 hlist_for_each_entry(entry, &bucket->hlist, hnode) {
529 struct nfs4_xattr_bucket *bucket;
533 bucket = nfs4_xattr_hash_bucket(cache, entry->xattr_name);
534 entry->bucket = bucket;
536 spin_lock(&bucket->lock);
538 if (bucket->draining) {
543 oldentry = nfs4_xattr_get_entry(bucket, entry->xattr_name);
551 hlist_add_head(&entry->hnode, &bucket->hlist);
555 spin_unlock(&bucket->lock);
566 struct nfs4_xattr_bucket *bucket;
569 bucket = nfs4_xattr_hash_bucket(cache, name);
571 spin_lock(&bucket->lock);
573 entry = nfs4_xattr_get_entry(bucket, name);
580 spin_unlock(&bucket->lock);
589 struct nfs4_xattr_bucket *bucket;
592 bucket = nfs4_xattr_hash_bucket(cache, name);
594 spin_lock(&bucket->lock);
596 entry = nfs4_xattr_get_entry(bucket, name);
600 spin_unlock(&bucket->lock);
754 * This is just there to be able to get to bucket->cache,
756 * use bucket 0.
758 entry->bucket = &cache->buckets[0];
873 struct nfs4_xattr_bucket *bucket;
878 bucket = entry->bucket;
879 cache = bucket->cache;
882 * Unhook the entry from its parent (either a cache bucket
892 if (!spin_trylock(&bucket->lock))
901 spin_unlock(&bucket->lock);