Lines Matching refs:write_lock_level
1386 int *write_lock_level) in unlock_up() argument
1418 if (write_lock_level && in unlock_up()
1420 i <= *write_lock_level) { in unlock_up()
1421 *write_lock_level = i - 1; in unlock_up()
1531 int *write_lock_level) in setup_nodes_for_search() argument
1539 if (*write_lock_level < level + 1) { in setup_nodes_for_search()
1540 *write_lock_level = level + 1; in setup_nodes_for_search()
1552 if (*write_lock_level < level + 1) { in setup_nodes_for_search()
1553 *write_lock_level = level + 1; in setup_nodes_for_search()
1610 int write_lock_level) in btrfs_search_slot_get_root() argument
1642 if (write_lock_level < BTRFS_MAX_LEVEL) { in btrfs_search_slot_get_root()
1649 if (level > write_lock_level) in btrfs_search_slot_get_root()
1764 int write_lock_level = 0; in btrfs_search_slot() local
1781 write_lock_level = 2; in btrfs_search_slot()
1787 write_lock_level = 1; in btrfs_search_slot()
1791 write_lock_level = -1; in btrfs_search_slot()
1794 write_lock_level = BTRFS_MAX_LEVEL; in btrfs_search_slot()
1796 min_write_lock_level = write_lock_level; in btrfs_search_slot()
1805 b = btrfs_search_slot_get_root(root, p, write_lock_level); in btrfs_search_slot()
1831 if (level > write_lock_level || in btrfs_search_slot()
1832 (level + 1 > write_lock_level && in btrfs_search_slot()
1835 write_lock_level = level + 1; in btrfs_search_slot()
1917 if (write_lock_level < 1) { in btrfs_search_slot()
1918 write_lock_level = 1; in btrfs_search_slot()
1943 &write_lock_level); in btrfs_search_slot()
1958 if (slot == 0 && ins_len && write_lock_level < level + 1) { in btrfs_search_slot()
1959 write_lock_level = level + 1; in btrfs_search_slot()
1965 &write_lock_level); in btrfs_search_slot()
1986 if (level <= write_lock_level) { in btrfs_search_slot()