Lines Matching refs:ptr
667 unsigned long ptr; in backref_in_log() local
681 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in backref_in_log()
682 ptr_end = ptr + item_size; in backref_in_log()
683 while (ptr < ptr_end) { in backref_in_log()
684 ref = (struct btrfs_inode_ref *)ptr; in backref_in_log()
695 ptr = (unsigned long)(ref + 1) + found_name_len; in backref_in_log()
776 unsigned long ptr; in add_inode_ref() local
790 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in add_inode_ref()
791 ptr_end = ptr + btrfs_item_size_nr(leaf, path->slots[0]); in add_inode_ref()
792 while (ptr < ptr_end) { in add_inode_ref()
793 victim_ref = (struct btrfs_inode_ref *)ptr; in add_inode_ref()
815 ptr = (unsigned long)(victim_ref + 1) + victim_name_len; in add_inode_ref()
883 unsigned long ptr; in fixup_inode_link_count() local
907 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in fixup_inode_link_count()
908 ptr_end = ptr + btrfs_item_size_nr(path->nodes[0], in fixup_inode_link_count()
910 while (ptr < ptr_end) { in fixup_inode_link_count()
913 ref = (struct btrfs_inode_ref *)ptr; in fixup_inode_link_count()
916 ptr = (unsigned long)(ref + 1) + name_len; in fixup_inode_link_count()
1174 unsigned long ptr; in replay_one_dir_item() local
1177 ptr = btrfs_item_ptr_offset(eb, slot); in replay_one_dir_item()
1178 ptr_end = ptr + item_size; in replay_one_dir_item()
1179 while (ptr < ptr_end) { in replay_one_dir_item()
1180 di = (struct btrfs_dir_item *)ptr; in replay_one_dir_item()
1184 ptr = (unsigned long)(di + 1); in replay_one_dir_item()
1185 ptr += name_len; in replay_one_dir_item()
1293 unsigned long ptr; in check_item_in_log() local
1303 ptr = btrfs_item_ptr_offset(eb, slot); in check_item_in_log()
1304 ptr_end = ptr + item_size; in check_item_in_log()
1305 while (ptr < ptr_end) { in check_item_in_log()
1306 di = (struct btrfs_dir_item *)ptr; in check_item_in_log()
1357 ptr = (unsigned long)(di + 1); in check_item_in_log()
1358 ptr += name_len; in check_item_in_log()