Lines Matching refs:ref_ptr

1234 static int extref_get_fields(struct extent_buffer *eb, unsigned long ref_ptr,  in extref_get_fields()  argument
1241 extref = (struct btrfs_inode_extref *)ref_ptr; in extref_get_fields()
1256 static int ref_get_fields(struct extent_buffer *eb, unsigned long ref_ptr, in ref_get_fields() argument
1262 ref = (struct btrfs_inode_ref *)ref_ptr; in ref_get_fields()
1291 unsigned long ref_ptr; in unlink_old_inode_refs() local
1306 ref_ptr = btrfs_item_ptr_offset(eb, path->slots[0]); in unlink_old_inode_refs()
1307 ref_end = ref_ptr + btrfs_item_size(eb, path->slots[0]); in unlink_old_inode_refs()
1308 while (ref_ptr < ref_end) { in unlink_old_inode_refs()
1313 ret = extref_get_fields(eb, ref_ptr, &name, in unlink_old_inode_refs()
1317 ret = ref_get_fields(eb, ref_ptr, &name, NULL); in unlink_old_inode_refs()
1348 ref_ptr += name.len; in unlink_old_inode_refs()
1350 ref_ptr += sizeof(struct btrfs_inode_extref); in unlink_old_inode_refs()
1352 ref_ptr += sizeof(struct btrfs_inode_ref); in unlink_old_inode_refs()
1375 unsigned long ref_ptr; in add_inode_ref() local
1385 ref_ptr = btrfs_item_ptr_offset(eb, slot); in add_inode_ref()
1386 ref_end = ref_ptr + btrfs_item_size(eb, slot); in add_inode_ref()
1393 r = (struct btrfs_inode_extref *)ref_ptr; in add_inode_ref()
1419 while (ref_ptr < ref_end) { in add_inode_ref()
1421 ret = extref_get_fields(eb, ref_ptr, &name, in add_inode_ref()
1434 ret = ref_get_fields(eb, ref_ptr, &name, &ref_index); in add_inode_ref()
1473 ref_ptr = (unsigned long)(ref_ptr + ref_struct_size) + name.len; in add_inode_ref()