Lines Matching refs:F_WRLCK
342 if ((rw_type == F_WRLCK) && (tdb->read_only || tdb->traverse_read)) {
384 if (tdb_brlock(tdb, offset, F_WRLCK, F_SETLKW, 1, len) == 0) {
696 return _tdb_lockall(tdb, F_WRLCK, F_SETLKW);
702 return _tdb_lockall(tdb, F_WRLCK | TDB_MARK_LOCK, F_SETLKW);
708 return _tdb_unlockall(tdb, F_WRLCK | TDB_MARK_LOCK);
714 return _tdb_lockall(tdb, F_WRLCK, F_SETLK);
720 return _tdb_unlockall(tdb, F_WRLCK);
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);
802 return tdb->methods->tdb_brlock(tdb, off, F_WRLCK, F_SETLK, 1, 1);
1055 if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
1112 tdb_unlock(tdb, -1, F_WRLCK);
1115 tdb_unlock(tdb, -1, F_WRLCK);
1626 if (tdb_transaction_lock(tdb, F_WRLCK) == -1) {
2029 if (tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0, 1) == -1) {
2325 if (tdb_lock(tdb, -1, F_WRLCK) != 0)
2409 tdb_unlock(tdb, -1, F_WRLCK);
2413 tdb_unlock(tdb, -1, F_WRLCK);
2491 if (tdb_lock(tdb, -1, F_WRLCK) == -1)
2544 tdb_unlock(tdb, -1, F_WRLCK);
2553 tdb_unlock(tdb, -1, F_WRLCK);
2592 if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
2636 tdb_unlock(tdb, -1, F_WRLCK);
2842 struct tdb_traverse_lock tl = { NULL, 0, 0, F_WRLCK };
2849 if (tdb_transaction_lock(tdb, F_WRLCK)) {
2985 if (tdb_lock(tdb, i, F_WRLCK) != 0)
2989 return tdb_unlock(tdb, i, F_WRLCK);
2998 return tdb_unlock(tdb, i, F_WRLCK);
3018 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0)
3025 tdb_unlock(tdb, -1, F_WRLCK);
3033 tdb_unlock(tdb, -1, F_WRLCK);
3039 tdb_unlock(tdb, -1, F_WRLCK);
3053 return tdb_unlock(tdb, -1, F_WRLCK);
3088 if (tdb_brlock(tdb, TDB_SEQNUM_OFS, F_WRLCK, F_SETLKW, 1, 1) != 0) {
3330 if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
3355 tdb_unlock(tdb, -1, F_WRLCK);
3373 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3385 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3396 if (!(rec_ptr = tdb_find_lock_hash(tdb, key, hash, F_WRLCK,
3407 if (tdb_unlock(tdb, BUCKET(rec.full_hash), F_WRLCK) != 0)
3467 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3541 if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
3547 tdb_unlock(tdb, -1, F_WRLCK);
3554 tdb_unlock(tdb, -1, F_WRLCK);
3585 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3599 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3626 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3876 if (tdb->methods->tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0, 1) == -1) {
3884 (locked = (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_WRLCK, F_SETLK, 0, 1) == 0))) {