Lines Matching full:bucket
140 #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off_t))
163 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
749 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
757 return tdb_lock_nonblock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
763 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK);
769 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK);
774 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
779 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK);
784 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK);
2929 tdb->travlocks.hash = BUCKET
2948 if (tdb_unlock(tdb, BUCKET(oldhash), tdb->travlocks.lock_rw) != 0)
3143 if (tdb_lock(tdb, BUCKET(hash), locktype) == -1)
3146 tdb_unlock(tdb, BUCKET(hash), locktype);
3196 /* find which hash bucket it is in */
3204 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3234 /* find which hash bucket it is in */
3244 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3261 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3380 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3392 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3414 if (tdb_unlock(tdb, BUCKET(rec.full_hash), F_WRLCK) != 0)
3472 /* find which hash bucket it is in */
3474 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3592 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3604 /* find which hash bucket it is in */
3606 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3633 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);