Lines Matching refs:item_size
696 u32 item_size; in btrfs_lookup_extent_info() local
720 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_extent_info()
721 if (item_size >= sizeof(*ei)) { in btrfs_lookup_extent_info()
729 BUG_ON(item_size != sizeof(*ei0)); in btrfs_lookup_extent_info()
1394 u64 item_size; in lookup_inline_extent_backref() local
1421 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in lookup_inline_extent_backref()
1423 if (item_size < sizeof(*ei)) { in lookup_inline_extent_backref()
1435 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in lookup_inline_extent_backref()
1438 BUG_ON(item_size < sizeof(*ei)); in lookup_inline_extent_backref()
1444 end = (unsigned long)ei + item_size; in lookup_inline_extent_backref()
1501 if (item_size + extra_size >= in lookup_inline_extent_backref()
1641 u32 item_size; in update_inline_extent_backref() local
1679 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in update_inline_extent_backref()
1681 end = (unsigned long)ei + item_size; in update_inline_extent_backref()
1685 item_size -= size; in update_inline_extent_backref()
1686 ret = btrfs_truncate_item(trans, root, path, item_size, 1); in update_inline_extent_backref()
1957 u32 item_size; in run_delayed_extent_op() local
1983 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in run_delayed_extent_op()
1985 if (item_size < sizeof(*ei)) { in run_delayed_extent_op()
1993 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in run_delayed_extent_op()
1996 BUG_ON(item_size < sizeof(*ei)); in run_delayed_extent_op()
2417 u32 item_size; in check_committed_ref() local
2441 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in check_committed_ref()
2443 if (item_size < sizeof(*ei)) { in check_committed_ref()
2444 WARN_ON(item_size != sizeof(struct btrfs_extent_item_v0)); in check_committed_ref()
2450 if (item_size != sizeof(*ei) + in check_committed_ref()
4500 u32 item_size; in __btrfs_free_extent() local
4534 item_size = btrfs_item_size_nr(path->nodes[0], extent_slot); in __btrfs_free_extent()
4535 if (found_extent && item_size < sizeof(*ei)) in __btrfs_free_extent()
4575 item_size = btrfs_item_size_nr(leaf, extent_slot); in __btrfs_free_extent()
4577 if (item_size < sizeof(*ei)) { in __btrfs_free_extent()
4601 item_size = btrfs_item_size_nr(leaf, extent_slot); in __btrfs_free_extent()
4604 BUG_ON(item_size < sizeof(*ei)); in __btrfs_free_extent()
4609 BUG_ON(item_size < sizeof(*ei) + sizeof(*bi)); in __btrfs_free_extent()