Lines Matching defs:bucket

87 	struct nfs4_xattr_bucket *bucket;
120 * 1. inode i_lock or bucket lock
238 entry->bucket = NULL;
389 struct nfs4_xattr_bucket *bucket;
395 bucket = &cache->buckets[i];
397 spin_lock(&bucket->lock);
398 bucket->draining = true;
399 hlist_for_each_entry_safe(entry, n, &bucket->hlist, hnode) {
404 spin_unlock(&bucket->lock);
512 nfs4_xattr_get_entry(struct nfs4_xattr_bucket *bucket, const char *name)
518 hlist_for_each_entry(entry, &bucket->hlist, hnode) {
530 struct nfs4_xattr_bucket *bucket;
534 bucket = nfs4_xattr_hash_bucket(cache, entry->xattr_name);
535 entry->bucket = bucket;
537 spin_lock(&bucket->lock);
539 if (bucket->draining) {
544 oldentry = nfs4_xattr_get_entry(bucket, entry->xattr_name);
552 hlist_add_head(&entry->hnode, &bucket->hlist);
556 spin_unlock(&bucket->lock);
567 struct nfs4_xattr_bucket *bucket;
570 bucket = nfs4_xattr_hash_bucket(cache, name);
572 spin_lock(&bucket->lock);
574 entry = nfs4_xattr_get_entry(bucket, name);
581 spin_unlock(&bucket->lock);
590 struct nfs4_xattr_bucket *bucket;
593 bucket = nfs4_xattr_hash_bucket(cache, name);
595 spin_lock(&bucket->lock);
597 entry = nfs4_xattr_get_entry(bucket, name);
601 spin_unlock(&bucket->lock);
755 * This is just there to be able to get to bucket->cache,
757 * use bucket 0.
759 entry->bucket = &cache->buckets[0];
893 struct nfs4_xattr_bucket *bucket;
898 bucket = entry->bucket;
899 cache = bucket->cache;
902 * Unhook the entry from its parent (either a cache bucket
912 if (!spin_trylock(&bucket->lock))
921 spin_unlock(&bucket->lock);