Lines Matching refs:BUCKET
138 #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off_t))
161 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
747 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
755 return tdb_lock_nonblock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
761 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK);
767 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK);
772 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
777 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK);
782 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK);
2927 tdb->travlocks.hash = BUCKET
2946 if (tdb_unlock(tdb, BUCKET(oldhash), tdb->travlocks.lock_rw) != 0)
3141 if (tdb_lock(tdb, BUCKET(hash), locktype) == -1)
3144 tdb_unlock(tdb, BUCKET(hash), locktype);
3194 /* find which hash bucket it is in */
3202 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3232 /* find which hash bucket it is in */
3242 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3259 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3378 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3390 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3412 if (tdb_unlock(tdb, BUCKET(rec.full_hash), F_WRLCK) != 0)
3470 /* find which hash bucket it is in */
3472 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3590 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3602 /* find which hash bucket it is in */
3604 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3631 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);