• Home
  • Raw
  • Download

Lines Matching refs:F_WRLCK

344 	if ((rw_type == F_WRLCK) && (tdb->read_only || tdb->traverse_read)) {  in tdb_brlock()
386 if (tdb_brlock(tdb, offset, F_WRLCK, F_SETLKW, 1, len) == 0) { in tdb_brlock_upgrade()
698 return _tdb_lockall(tdb, F_WRLCK, F_SETLKW); in tdb_lockall()
704 return _tdb_lockall(tdb, F_WRLCK | TDB_MARK_LOCK, F_SETLKW); in tdb_lockall_mark()
710 return _tdb_unlockall(tdb, F_WRLCK | TDB_MARK_LOCK); in tdb_lockall_unmark()
716 return _tdb_lockall(tdb, F_WRLCK, F_SETLK); in tdb_lockall_nonblock()
722 return _tdb_unlockall(tdb, F_WRLCK); in tdb_unlockall()
747 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock()
755 return tdb_lock_nonblock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock_nonblock()
761 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK); in tdb_chainlock_mark()
767 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK); in tdb_chainlock_unmark()
772 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainunlock()
804 return tdb->methods->tdb_brlock(tdb, off, F_WRLCK, F_SETLK, 1, 1); in tdb_write_lock_record()
1060 if (tdb_lock(tdb, -1, F_WRLCK) == -1) { in tdb_expand()
1117 tdb_unlock(tdb, -1, F_WRLCK); in tdb_expand()
1120 tdb_unlock(tdb, -1, F_WRLCK); in tdb_expand()
1631 if (tdb_transaction_lock(tdb, F_WRLCK) == -1) { in tdb_transaction_start()
2034 if (tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0, 1) == -1) { in tdb_transaction_commit()
2330 if (tdb_lock(tdb, -1, F_WRLCK) != 0) in tdb_free()
2414 tdb_unlock(tdb, -1, F_WRLCK); in tdb_free()
2418 tdb_unlock(tdb, -1, F_WRLCK); in tdb_free()
2496 if (tdb_lock(tdb, -1, F_WRLCK) == -1) in tdb_allocate()
2549 tdb_unlock(tdb, -1, F_WRLCK); in tdb_allocate()
2558 tdb_unlock(tdb, -1, F_WRLCK); in tdb_allocate()
2597 if (tdb_lock(tdb, -1, F_WRLCK) == -1) { in tdb_validate_freelist()
2641 tdb_unlock(tdb, -1, F_WRLCK); in tdb_validate_freelist()
2847 struct tdb_traverse_lock tl = { NULL, 0, 0, F_WRLCK }; in tdb_traverse()
2854 if (tdb_transaction_lock(tdb, F_WRLCK)) { in tdb_traverse()
2990 if (tdb_lock(tdb, i, F_WRLCK) != 0) in tdb_dump_chain()
2994 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
3003 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
3023 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0) in tdb_printfreelist()
3030 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
3038 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
3044 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
3058 return tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
3093 if (tdb_brlock(tdb, TDB_SEQNUM_OFS, F_WRLCK, F_SETLKW, 1, 1) != 0) { in tdb_increment_seqnum()
3335 if (tdb_lock(tdb, -1, F_WRLCK) == -1) { in tdb_purge_dead()
3360 tdb_unlock(tdb, -1, F_WRLCK); in tdb_purge_dead()
3378 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1) in tdb_delete_hash()
3390 tdb_unlock(tdb, BUCKET(hash), F_WRLCK); in tdb_delete_hash()
3401 if (!(rec_ptr = tdb_find_lock_hash(tdb, key, hash, F_WRLCK, in tdb_delete_hash()
3412 if (tdb_unlock(tdb, BUCKET(rec.full_hash), F_WRLCK) != 0) 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()
3552 tdb_unlock(tdb, -1, F_WRLCK); in tdb_store()
3559 tdb_unlock(tdb, -1, F_WRLCK); in tdb_store()
3590 tdb_unlock(tdb, BUCKET(hash), F_WRLCK); in tdb_store()
3604 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1) in tdb_append()
3631 tdb_unlock(tdb, BUCKET(hash), F_WRLCK); in tdb_append()
3881 if (tdb->methods->tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0, 1) == -1) { in tdb_open_ex()
3889 (locked = (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_WRLCK, F_SETLK, 0, 1) == 0))) { in tdb_open_ex()