Home | History | Annotate | Download | only in ext2fs

Lines Matching defs:global_lock

154 #define GLOBAL_LOCK      0
232 struct tdb_lock_type global_lock;
414 if (tdb->global_lock.count &&
415 (ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) {
419 if (tdb->global_lock.count) {
509 if (tdb->global_lock.count &&
510 (ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) {
514 if (tdb->global_lock.count) {
588 if (tdb->have_transaction_lock || tdb->global_lock.count) {
631 if (tdb->global_lock.count && tdb->global_lock.ltype == ltype) {
632 tdb->global_lock.count++;
636 if (tdb->global_lock.count) {
655 tdb->global_lock.count = 1;
656 tdb->global_lock.ltype = ltype;
675 if (tdb->global_lock.ltype != ltype || tdb->global_lock.count == 0) {
679 if (tdb->global_lock.count > 1) {
680 tdb->global_lock.count--;
691 tdb->global_lock.count = 0;
692 tdb->global_lock.ltype = 0;
1605 if (tdb->num_locks != 0 || tdb->global_lock.count) {
1719 if (tdb->global_lock.count != 0) {
1721 tdb->global_lock.count = 0;
2019 if (tdb->num_locks || tdb->global_lock.count) {
2036 if (tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0, 1) == -1) {
2047 tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1);
2060 tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1);
2082 tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1);
2110 tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1);
3883 if (tdb->methods->tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0, 1) == -1) {
3978 if (tdb->methods->tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1) == -1)
4076 if (tdb->num_locks != 0 || tdb->global_lock.count) {