Lines Matching refs:src_nritems
1838 int src_nritems; in push_node_left() local
1842 src_nritems = btrfs_header_nritems(src); in push_node_left()
1848 if (!empty && src_nritems <= 8) in push_node_left()
1855 push_items = min(src_nritems, push_items); in push_node_left()
1856 if (push_items < src_nritems) { in push_node_left()
1860 if (src_nritems - push_items < 8) { in push_node_left()
1867 push_items = min(src_nritems - 8, push_items); in push_node_left()
1874 if (push_items < src_nritems) { in push_node_left()
1877 (src_nritems - push_items) * in push_node_left()
1880 btrfs_set_header_nritems(src, src_nritems - push_items); in push_node_left()
1904 int src_nritems; in balance_node_right() local
1911 src_nritems = btrfs_header_nritems(src); in balance_node_right()
1917 if (src_nritems < 4) in balance_node_right()
1920 max_push = src_nritems / 2 + 1; in balance_node_right()
1922 if (max_push >= src_nritems) in balance_node_right()
1935 btrfs_node_key_ptr_offset(src_nritems - push_items), in balance_node_right()
1938 btrfs_set_header_nritems(src, src_nritems - push_items); in balance_node_right()