Lines Matching refs:write_lock_level
2372 int *write_lock_level) in unlock_up() argument
2404 if (write_lock_level && in unlock_up()
2406 i <= *write_lock_level) { in unlock_up()
2407 *write_lock_level = i - 1; in unlock_up()
2550 int *write_lock_level) in setup_nodes_for_search() argument
2559 if (*write_lock_level < level + 1) { in setup_nodes_for_search()
2560 *write_lock_level = level + 1; in setup_nodes_for_search()
2580 if (*write_lock_level < level + 1) { in setup_nodes_for_search()
2581 *write_lock_level = level + 1; in setup_nodes_for_search()
2681 int write_lock_level) in btrfs_search_slot_get_root() argument
2732 if (write_lock_level < BTRFS_MAX_LEVEL) { in btrfs_search_slot_get_root()
2739 if (level > write_lock_level) in btrfs_search_slot_get_root()
2801 int write_lock_level = 0; in btrfs_search_slot() local
2818 write_lock_level = 2; in btrfs_search_slot()
2824 write_lock_level = 1; in btrfs_search_slot()
2828 write_lock_level = -1; in btrfs_search_slot()
2831 write_lock_level = BTRFS_MAX_LEVEL; in btrfs_search_slot()
2833 min_write_lock_level = write_lock_level; in btrfs_search_slot()
2837 b = btrfs_search_slot_get_root(root, p, write_lock_level); in btrfs_search_slot()
2867 if (level > write_lock_level || in btrfs_search_slot()
2868 (level + 1 > write_lock_level && in btrfs_search_slot()
2871 write_lock_level = level + 1; in btrfs_search_slot()
2925 ins_len, &write_lock_level); in btrfs_search_slot()
2942 write_lock_level < level + 1) { in btrfs_search_slot()
2943 write_lock_level = level + 1; in btrfs_search_slot()
2949 min_write_lock_level, &write_lock_level); in btrfs_search_slot()
2968 if (level <= write_lock_level) { in btrfs_search_slot()
2993 if (write_lock_level < 1) { in btrfs_search_slot()
2994 write_lock_level = 1; in btrfs_search_slot()
3012 min_write_lock_level, &write_lock_level); in btrfs_search_slot()