• Home
  • Raw
  • Download

Lines Matching refs:ptr

1239 	unsigned long ptr;	/* Current pointer inside inline refs */  in check_extent_item()  local
1347 ptr = (unsigned long)(struct btrfs_extent_item *)(ei + 1); in check_extent_item()
1353 info = (struct btrfs_tree_block_info *)ptr; in check_extent_item()
1361 ptr = (unsigned long)(struct btrfs_tree_block_info *)(info + 1); in check_extent_item()
1365 while (ptr < end) { in check_extent_item()
1373 if (unlikely(ptr + sizeof(*iref) > end)) { in check_extent_item()
1376 ptr, sizeof(*iref), end); in check_extent_item()
1379 iref = (struct btrfs_extent_inline_ref *)ptr; in check_extent_item()
1382 if (unlikely(ptr + btrfs_extent_inline_ref_size(inline_type) > end)) { in check_extent_item()
1385 ptr, btrfs_extent_inline_ref_size(inline_type), end); in check_extent_item()
1438 ptr += btrfs_extent_inline_ref_size(inline_type); in check_extent_item()
1441 if (unlikely(ptr != end)) { in check_extent_item()
1512 unsigned long ptr = btrfs_item_ptr_offset(leaf, slot); in check_extent_data_ref() local
1513 const unsigned long end = ptr + btrfs_item_size_nr(leaf, slot); in check_extent_data_ref()
1528 for (; ptr < end; ptr += sizeof(*dref)) { in check_extent_data_ref()
1535 dref = (struct btrfs_extent_data_ref *)ptr; in check_extent_data_ref()
1554 unsigned long ptr; in check_inode_ref() local
1568 ptr = btrfs_item_ptr_offset(leaf, slot); in check_inode_ref()
1569 end = ptr + btrfs_item_size_nr(leaf, slot); in check_inode_ref()
1570 while (ptr < end) { in check_inode_ref()
1573 if (unlikely(ptr + sizeof(iref) > end)) { in check_inode_ref()
1576 ptr, end, sizeof(iref)); in check_inode_ref()
1580 iref = (struct btrfs_inode_ref *)ptr; in check_inode_ref()
1582 if (unlikely(ptr + sizeof(*iref) + namelen > end)) { in check_inode_ref()
1585 ptr, end, namelen); in check_inode_ref()
1594 ptr += sizeof(*iref) + namelen; in check_inode_ref()