Lines Matching refs:item_size
205 u32 item_size = btrfs_item_size_nr(leaf, slot); in check_extent_data_item() local
230 if (unlikely(item_size < BTRFS_FILE_EXTENT_INLINE_DATA_START)) { in check_extent_data_item()
233 item_size, BTRFS_FILE_EXTENT_INLINE_DATA_START, in check_extent_data_item()
279 if (unlikely(item_size != BTRFS_FILE_EXTENT_INLINE_DATA_START + in check_extent_data_item()
283 item_size, BTRFS_FILE_EXTENT_INLINE_DATA_START + in check_extent_data_item()
291 if (unlikely(item_size != sizeof(*fi))) { in check_extent_data_item()
294 item_size, sizeof(*fi)); in check_extent_data_item()
500 u32 item_size = btrfs_item_size_nr(leaf, slot); in check_dir_item() local
507 while (cur < item_size) { in check_dir_item()
518 if (unlikely(cur + sizeof(*di) > item_size)) { in check_dir_item()
521 cur + sizeof(*di), item_size); in check_dir_item()
598 if (unlikely(cur + total_size > item_size)) { in check_dir_item()
601 cur + total_size, item_size); in check_dir_item()
657 u32 item_size = btrfs_item_size_nr(leaf, slot); in check_block_group_item() local
671 if (unlikely(item_size != sizeof(bgi))) { in check_block_group_item()
674 item_size, sizeof(bgi)); in check_block_group_item()
982 const u32 item_size = btrfs_item_size_nr(leaf, slot); in check_dev_item() local
991 if (unlikely(item_size != sizeof(*ditem))) { in check_dev_item()
993 item_size, sizeof(*ditem)); in check_dev_item()
1032 const u32 item_size = btrfs_item_size_nr(leaf, slot); in check_inode_item() local
1042 if (unlikely(item_size != sizeof(*iitem))) { in check_inode_item()
1044 item_size, sizeof(*iitem)); in check_inode_item()
1241 const u32 item_size = btrfs_item_size_nr(leaf, slot); in check_extent_item() local
1289 if (unlikely(item_size < sizeof(*ei))) { in check_extent_item()
1292 item_size, sizeof(*ei), in check_extent_item()
1296 end = item_size + btrfs_item_ptr_offset(leaf, slot); in check_extent_item()