Lines Matching refs:write_lock_level
2342 int *write_lock_level) in unlock_up() argument
2374 if (write_lock_level && in unlock_up()
2376 i <= *write_lock_level) { in unlock_up()
2377 *write_lock_level = i - 1; in unlock_up()
2493 int *write_lock_level) in setup_nodes_for_search() argument
2502 if (*write_lock_level < level + 1) { in setup_nodes_for_search()
2503 *write_lock_level = level + 1; in setup_nodes_for_search()
2522 if (*write_lock_level < level + 1) { in setup_nodes_for_search()
2523 *write_lock_level = level + 1; in setup_nodes_for_search()
2588 int write_lock_level) in btrfs_search_slot_get_root() argument
2639 if (write_lock_level < BTRFS_MAX_LEVEL) { in btrfs_search_slot_get_root()
2646 if (level > write_lock_level) in btrfs_search_slot_get_root()
2718 int write_lock_level = 0; in btrfs_search_slot() local
2735 write_lock_level = 2; in btrfs_search_slot()
2741 write_lock_level = 1; in btrfs_search_slot()
2745 write_lock_level = -1; in btrfs_search_slot()
2748 write_lock_level = BTRFS_MAX_LEVEL; in btrfs_search_slot()
2750 min_write_lock_level = write_lock_level; in btrfs_search_slot()
2754 b = btrfs_search_slot_get_root(root, p, write_lock_level); in btrfs_search_slot()
2782 if (level > write_lock_level || in btrfs_search_slot()
2783 (level + 1 > write_lock_level && in btrfs_search_slot()
2786 write_lock_level = level + 1; in btrfs_search_slot()
2855 if (write_lock_level < 1) { in btrfs_search_slot()
2856 write_lock_level = 1; in btrfs_search_slot()
2882 &write_lock_level); in btrfs_search_slot()
2897 if (slot == 0 && ins_len && write_lock_level < level + 1) { in btrfs_search_slot()
2898 write_lock_level = level + 1; in btrfs_search_slot()
2904 &write_lock_level); in btrfs_search_slot()
2922 if (level <= write_lock_level) { in btrfs_search_slot()