Searched refs:tlock (Results 1 – 1 of 1) sorted by relevance
2645 static int tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock *tlock, in tdb_next_lock() argument2648 int want_next = (tlock->off != 0); in tdb_next_lock()2651 for (; tlock->hash < tdb->header.hash_size; tlock->hash++) { in tdb_next_lock()2652 if (!tlock->off && tlock->hash != 0) { in tdb_next_lock()2681 tdb->methods->next_hash_chain(tdb, &tlock->hash); in tdb_next_lock()2682 if (tlock->hash == tdb->header.hash_size) { in tdb_next_lock()2687 if (tdb_lock(tdb, tlock->hash, tlock->lock_rw) == -1) in tdb_next_lock()2691 if (!tlock->off) { in tdb_next_lock()2692 if (tdb_ofs_read(tdb, TDB_HASH_TOP(tlock->hash), in tdb_next_lock()2693 &tlock->off) == -1) in tdb_next_lock()[all …]