Lines Matching refs:fid
22 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local
37 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh()
38 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh()
39 fid->gen = inode->i_generation; in btrfs_encode_fh()
44 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh()
45 fid->parent_gen = parent->i_generation; in btrfs_encode_fh()
48 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh()
49 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh()
101 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent()
104 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local
111 root_objectid = fid->root_objectid; in btrfs_fh_to_parent()
115 root_objectid = fid->parent_root_objectid; in btrfs_fh_to_parent()
119 objectid = fid->parent_objectid; in btrfs_fh_to_parent()
120 generation = fid->parent_gen; in btrfs_fh_to_parent()
125 static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh, in btrfs_fh_to_dentry()
128 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_dentry() local
140 objectid = fid->objectid; in btrfs_fh_to_dentry()
141 root_objectid = fid->root_objectid; in btrfs_fh_to_dentry()
142 generation = fid->gen; in btrfs_fh_to_dentry()