Lines Matching refs:write_lock_level
1458 int *write_lock_level) in unlock_up() argument
1491 if (write_lock_level && in unlock_up()
1493 i <= *write_lock_level) { in unlock_up()
1494 *write_lock_level = i - 1; in unlock_up()
1633 int *write_lock_level) in setup_nodes_for_search() argument
1641 if (*write_lock_level < level + 1) { in setup_nodes_for_search()
1642 *write_lock_level = level + 1; in setup_nodes_for_search()
1654 if (*write_lock_level < level + 1) { in setup_nodes_for_search()
1655 *write_lock_level = level + 1; in setup_nodes_for_search()
1712 int write_lock_level) in btrfs_search_slot_get_root() argument
1744 if (write_lock_level < BTRFS_MAX_LEVEL) { in btrfs_search_slot_get_root()
1757 if (level > write_lock_level) in btrfs_search_slot_get_root()
2021 int write_lock_level = 0; in btrfs_search_slot() local
2047 write_lock_level = 2; in btrfs_search_slot()
2053 write_lock_level = 1; in btrfs_search_slot()
2057 write_lock_level = -1; in btrfs_search_slot()
2060 write_lock_level = BTRFS_MAX_LEVEL; in btrfs_search_slot()
2062 min_write_lock_level = write_lock_level; in btrfs_search_slot()
2076 b = btrfs_search_slot_get_root(root, p, write_lock_level); in btrfs_search_slot()
2102 if (level > write_lock_level || in btrfs_search_slot()
2103 (level + 1 > write_lock_level && in btrfs_search_slot()
2106 write_lock_level = level + 1; in btrfs_search_slot()
2150 ASSERT(write_lock_level >= 1); in btrfs_search_slot()
2170 &write_lock_level); in btrfs_search_slot()
2185 if (slot == 0 && ins_len && write_lock_level < level + 1) { in btrfs_search_slot()
2186 write_lock_level = level + 1; in btrfs_search_slot()
2192 &write_lock_level); in btrfs_search_slot()
2213 if (level <= write_lock_level) { in btrfs_search_slot()