Lines Matching refs:treelock
151 int treelock;
819 assert(node->treelock == 0);
975 assert(wnode->treelock == TREELOCK_WRITE);
976 wnode->treelock = 0;
981 assert(node->treelock != 0);
982 assert(node->treelock != TREELOCK_WAIT_OFFSET);
983 assert(node->treelock != TREELOCK_WRITE);
984 node->treelock--;
985 if (node->treelock == TREELOCK_WAIT_OFFSET)
986 node->treelock = 0;
1021 if (wnode->treelock != 0) {
1022 if (wnode->treelock > 0)
1023 wnode->treelock += TREELOCK_WAIT_OFFSET;
1027 wnode->treelock = TREELOCK_WRITE;
1044 if (node->treelock < 0)
1047 node->treelock++;
1099 if (get_node(f, qe->nodeid1)->treelock == 0)
1373 while (node->nlookup == nlookup && node->treelock) {
1383 } while (node->nlookup == nlookup && node->treelock);