Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:BUCKET

137 #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off_t))
160 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
745 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
753 return tdb_lock_nonblock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
759 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK);
765 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK);
770 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
775 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK);
780 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK);
2922 tdb->travlocks.hash = BUCKET(rec.full_hash);
2941 if (tdb_unlock(tdb, BUCKET(oldhash), tdb->travlocks.lock_rw) != 0)
3136 if (tdb_lock(tdb, BUCKET(hash), locktype) == -1)
3139 tdb_unlock(tdb, BUCKET(hash), locktype);
3189 /* find which hash bucket it is in */
3197 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3227 /* find which hash bucket it is in */
3237 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3254 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
3373 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3385 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3407 if (tdb_unlock(tdb, BUCKET(rec.full_hash), F_WRLCK) != 0)
3465 /* find which hash bucket it is in */
3467 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3585 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3597 /* find which hash bucket it is in */
3599 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3626 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);