• Home
  • Raw
  • Download

Lines Matching refs:ptr

1256 	unsigned long ptr;	/* Current pointer inside inline refs */  in check_extent_item()  local
1364 ptr = (unsigned long)(struct btrfs_extent_item *)(ei + 1); in check_extent_item()
1370 info = (struct btrfs_tree_block_info *)ptr; in check_extent_item()
1378 ptr = (unsigned long)(struct btrfs_tree_block_info *)(info + 1); in check_extent_item()
1382 while (ptr < end) { in check_extent_item()
1390 if (unlikely(ptr + sizeof(*iref) > end)) { in check_extent_item()
1393 ptr, sizeof(*iref), end); in check_extent_item()
1396 iref = (struct btrfs_extent_inline_ref *)ptr; in check_extent_item()
1399 if (unlikely(ptr + btrfs_extent_inline_ref_size(inline_type) > end)) { in check_extent_item()
1402 ptr, btrfs_extent_inline_ref_size(inline_type), end); in check_extent_item()
1455 ptr += btrfs_extent_inline_ref_size(inline_type); in check_extent_item()
1458 if (unlikely(ptr != end)) { in check_extent_item()
1529 unsigned long ptr = btrfs_item_ptr_offset(leaf, slot); in check_extent_data_ref() local
1530 const unsigned long end = ptr + btrfs_item_size(leaf, slot); in check_extent_data_ref()
1545 for (; ptr < end; ptr += sizeof(*dref)) { in check_extent_data_ref()
1552 dref = (struct btrfs_extent_data_ref *)ptr; in check_extent_data_ref()
1571 unsigned long ptr; in check_inode_ref() local
1585 ptr = btrfs_item_ptr_offset(leaf, slot); in check_inode_ref()
1586 end = ptr + btrfs_item_size(leaf, slot); in check_inode_ref()
1587 while (ptr < end) { in check_inode_ref()
1590 if (unlikely(ptr + sizeof(iref) > end)) { in check_inode_ref()
1593 ptr, end, sizeof(iref)); in check_inode_ref()
1597 iref = (struct btrfs_inode_ref *)ptr; in check_inode_ref()
1599 if (unlikely(ptr + sizeof(*iref) + namelen > end)) { in check_inode_ref()
1602 ptr, end, namelen); in check_inode_ref()
1611 ptr += sizeof(*iref) + namelen; in check_inode_ref()