Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:F_WRLCK

344 	if ((rw_type == F_WRLCK) && (tdb->read_only || tdb->traverse_read)) {
386 if (tdb_brlock(tdb, offset, F_WRLCK, F_SETLKW, 1, len) == 0) {
698 return _tdb_lockall(tdb, F_WRLCK, F_SETLKW);
704 return _tdb_lockall(tdb, F_WRLCK | TDB_MARK_LOCK, F_SETLKW);
710 return _tdb_unlockall(tdb, F_WRLCK | TDB_MARK_LOCK);
716 return _tdb_lockall(tdb, F_WRLCK, F_SETLK);
722 return _tdb_unlockall(tdb, F_WRLCK);
747 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
755 return tdb_lock_nonblock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
761 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK);
767 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK);
772 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
804 return tdb->methods->tdb_brlock(tdb, off, F_WRLCK, F_SETLK, 1, 1);
1057 if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
1114 tdb_unlock(tdb, -1, F_WRLCK);
1117 tdb_unlock(tdb, -1, F_WRLCK);
1628 if (tdb_transaction_lock(tdb, F_WRLCK) == -1) {
2031 if (tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0, 1) == -1) {
2327 if (tdb_lock(tdb, -1, F_WRLCK) != 0)
2411 tdb_unlock(tdb, -1, F_WRLCK);
2415 tdb_unlock(tdb, -1, F_WRLCK);
2493 if (tdb_lock(tdb, -1, F_WRLCK) == -1)
2546 tdb_unlock(tdb, -1, F_WRLCK);
2555 tdb_unlock(tdb, -1, F_WRLCK);
2594 if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
2638 tdb_unlock(tdb, -1, F_WRLCK);
2844 struct tdb_traverse_lock tl = { NULL, 0, 0, F_WRLCK };
2851 if (tdb_transaction_lock(tdb, F_WRLCK)) {
2987 if (tdb_lock(tdb, i, F_WRLCK) != 0)
2991 return tdb_unlock(tdb, i, F_WRLCK);
3000 return tdb_unlock(tdb, i, F_WRLCK);
3020 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0)
3027 tdb_unlock(tdb, -1, F_WRLCK);
3035 tdb_unlock(tdb, -1, F_WRLCK);
3041 tdb_unlock(tdb, -1, F_WRLCK);
3055 return tdb_unlock(tdb, -1, F_WRLCK);
3092 if (tdb_brlock(tdb, TDB_SEQNUM_OFS, F_WRLCK, F_SETLKW, 1, 1) != 0) {
3334 if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
3359 tdb_unlock(tdb, -1, F_WRLCK);
3377 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3389 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3400 if (!(rec_ptr = tdb_find_lock_hash(tdb, key, hash, F_WRLCK,
3411 if (tdb_unlock(tdb, BUCKET(rec.full_hash), F_WRLCK) != 0)
3471 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3545 if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
3551 tdb_unlock(tdb, -1, F_WRLCK);
3558 tdb_unlock(tdb, -1, F_WRLCK);
3589 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3603 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
3630 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
3880 if (tdb->methods->tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0, 1) == -1) {
3888 (locked = (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_WRLCK, F_SETLK, 0, 1) == 0))) {