Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:BUCKET

139 #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off_t))
162 #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);
2924 tdb->travlocks.hash = BUCKET(rec.full_hash);
2943 if (tdb_unlock(tdb, BUCKET(oldhash), tdb->travlocks.lock_rw) != 0)
3140 if (tdb_lock(tdb, BUCKET(hash), locktype) == -1)
3143 tdb_unlock(tdb, BUCKET(hash), locktype);
3193 /* find which hash bucket it is in */
3201 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3231 /* find which hash bucket it is in */
3241 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3258 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3377 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3389 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3411 if (tdb_unlock(tdb, BUCKET(rec.full_hash), F_WRLCK) != 0)
3469 /* find which hash bucket it is in */
3471 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3589 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3601 /* find which hash bucket it is in */
3603 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3630 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);