Lines Matching refs:tdb_lock
258 static int tdb_lock(struct tdb_context *tdb, int list, int ltype);
476 int tdb_lock(struct tdb_context *tdb, int list, int ltype) in tdb_lock() function
747 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock()
761 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK); in tdb_chainlock_mark()
777 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
1060 if (tdb_lock(tdb, -1, F_WRLCK) == -1) { in tdb_expand()
2330 if (tdb_lock(tdb, -1, F_WRLCK) != 0) in tdb_free()
2496 if (tdb_lock(tdb, -1, F_WRLCK) == -1) in tdb_allocate()
2597 if (tdb_lock(tdb, -1, F_WRLCK) == -1) { in tdb_validate_freelist()
2690 if (tdb_lock(tdb, tlock->hash, tlock->lock_rw) == -1) in tdb_next_lock()
2901 if (tdb_lock(tdb,tdb->travlocks.hash,tdb->travlocks.lock_rw)) in tdb_nextkey()
2990 if (tdb_lock(tdb, i, F_WRLCK) != 0) in tdb_dump_chain()
3023 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0) in tdb_printfreelist()
3141 if (tdb_lock(tdb, BUCKET(hash), locktype) == -1) in tdb_find_lock_hash()
3335 if (tdb_lock(tdb, -1, F_WRLCK) == -1) { in tdb_purge_dead()
3378 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1) in tdb_delete_hash()
3472 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1) in tdb_store()
3546 if (tdb_lock(tdb, -1, F_WRLCK) == -1) { in tdb_store()
3604 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1) in tdb_append()