Lines Matching refs:objectid
35 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh()
36 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh()
42 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh()
44 parent_root_id = BTRFS_I(parent)->root->root_key.objectid; in btrfs_encode_fh()
60 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, in btrfs_get_dentry() argument
68 if (objectid < BTRFS_FIRST_FREE_OBJECTID) in btrfs_get_dentry()
75 inode = btrfs_iget(sb, objectid, root); in btrfs_get_dentry()
92 u64 objectid, root_objectid; in btrfs_fh_to_parent() local
106 objectid = fid->parent_objectid; in btrfs_fh_to_parent()
109 return btrfs_get_dentry(sb, objectid, root_objectid, generation, 1); in btrfs_fh_to_parent()
116 u64 objectid, root_objectid; in btrfs_fh_to_dentry() local
127 objectid = fid->objectid; in btrfs_fh_to_dentry()
131 return btrfs_get_dentry(sb, objectid, root_objectid, generation, 1); in btrfs_fh_to_dentry()
151 key.objectid = root->root_key.objectid; in btrfs_get_parent()
156 key.objectid = btrfs_ino(BTRFS_I(dir)); in btrfs_get_parent()
175 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent()
183 key.objectid = btrfs_root_ref_dirid(leaf, ref); in btrfs_get_parent()
185 key.objectid = found_key.offset; in btrfs_get_parent()
190 return btrfs_get_dentry(fs_info->sb, key.objectid, in btrfs_get_parent()
194 return d_obtain_alias(btrfs_iget(fs_info->sb, key.objectid, root)); in btrfs_get_parent()
227 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
232 key.objectid = ino; in btrfs_get_name()