Lines Matching refs:locks
20 * The locks use a custom scheme that allows to do more operations than are
35 * The extent buffer locks (also called tree locks) manage access to eb data
64 * tree. This can happen when btrfs_cow_block locks the tree and needs to
489 * Set all locked nodes in the path to blocking locks. This should be done
497 if (!p->nodes[i] || !p->locks[i])
504 if (p->locks[i] == BTRFS_READ_LOCK) {
506 p->locks[i] = BTRFS_READ_LOCK_BLOCKING;
507 } else if (p->locks[i] == BTRFS_WRITE_LOCK) {
509 p->locks[i] = BTRFS_WRITE_LOCK_BLOCKING;
515 * This releases any locks held in the path starting at level and going all the
533 if (!path->locks[i])
535 btrfs_tree_unlock_rw(path->nodes[i], path->locks[i]);
536 path->locks[i] = 0;
584 * DREW locks