Lines Matching refs:wret
1870 int wret; in balance_level() local
1945 wret = btrfs_cow_block(trans, root, left, in balance_level()
1947 if (wret) { in balance_level()
1948 ret = wret; in balance_level()
1956 wret = btrfs_cow_block(trans, root, right, in balance_level()
1958 if (wret) { in balance_level()
1959 ret = wret; in balance_level()
1967 wret = push_node_left(trans, root, left, mid, 1); in balance_level()
1968 if (wret < 0) in balance_level()
1969 ret = wret; in balance_level()
1976 wret = push_node_left(trans, root, mid, right, 1); in balance_level()
1977 if (wret < 0 && wret != -ENOSPC) in balance_level()
1978 ret = wret; in balance_level()
2011 wret = balance_node_right(trans, root, mid, left); in balance_level()
2012 if (wret < 0) { in balance_level()
2013 ret = wret; in balance_level()
2016 if (wret == 1) { in balance_level()
2017 wret = push_node_left(trans, root, left, mid, 1); in balance_level()
2018 if (wret < 0) in balance_level()
2019 ret = wret; in balance_level()
2021 BUG_ON(wret == 1); in balance_level()
2088 int wret; in push_nodes_for_insert() local
2117 wret = 1; in push_nodes_for_insert()
2122 wret = 1; in push_nodes_for_insert()
2124 wret = push_node_left(trans, root, in push_nodes_for_insert()
2128 if (wret < 0) in push_nodes_for_insert()
2129 ret = wret; in push_nodes_for_insert()
2130 if (wret == 0) { in push_nodes_for_insert()
2169 wret = 1; in push_nodes_for_insert()
2175 wret = 1; in push_nodes_for_insert()
2177 wret = balance_node_right(trans, root, in push_nodes_for_insert()
2181 if (wret < 0) in push_nodes_for_insert()
2182 ret = wret; in push_nodes_for_insert()
2183 if (wret == 0) { in push_nodes_for_insert()
4167 int wret; in split_leaf() local
4185 wret = push_leaf_right(trans, root, path, space_needed, in split_leaf()
4187 if (wret < 0) in split_leaf()
4188 return wret; in split_leaf()
4189 if (wret) { in split_leaf()
4190 wret = push_leaf_left(trans, root, path, space_needed, in split_leaf()
4192 if (wret < 0) in split_leaf()
4193 return wret; in split_leaf()
4933 int wret; in btrfs_del_items() local
5001 wret = push_leaf_left(trans, root, path, 1, 1, in btrfs_del_items()
5003 if (wret < 0 && wret != -ENOSPC) in btrfs_del_items()
5004 ret = wret; in btrfs_del_items()
5008 wret = push_leaf_right(trans, root, path, 1, in btrfs_del_items()
5010 if (wret < 0 && wret != -ENOSPC) in btrfs_del_items()
5011 ret = wret; in btrfs_del_items()