Lines Matching refs:del_nr
218 int del_nr = 0; in btrfs_drop_extents() local
266 BUG_ON(del_nr > 0); in btrfs_drop_extents()
284 ASSERT(del_nr == 0); in btrfs_drop_extents()
342 BUG_ON(del_nr > 0); in btrfs_drop_extents()
430 BUG_ON(del_nr > 0); in btrfs_drop_extents()
454 if (del_nr == 0) { in btrfs_drop_extents()
456 del_nr = 1; in btrfs_drop_extents()
458 BUG_ON(del_slot + del_nr != path->slots[0]); in btrfs_drop_extents()
459 del_nr++; in btrfs_drop_extents()
496 del_nr); in btrfs_drop_extents()
502 del_nr = 0; in btrfs_drop_extents()
512 if (!ret && del_nr > 0) { in btrfs_drop_extents()
520 ret = btrfs_del_items(trans, root, path, del_slot, del_nr); in btrfs_drop_extents()
539 if (!del_nr && path->slots[0] < btrfs_header_nritems(leaf)) { in btrfs_drop_extents()
618 int del_nr = 0; in btrfs_mark_extent_written() local
800 del_nr++; in btrfs_mark_extent_written()
818 del_nr++; in btrfs_mark_extent_written()
825 if (del_nr == 0) { in btrfs_mark_extent_written()
842 ret = btrfs_del_items(trans, root, path, del_slot, del_nr); in btrfs_mark_extent_written()