Lines Matching refs:fid
18 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local
33 fid->objectid = btrfs_ino(inode); in btrfs_encode_fh()
34 fid->root_objectid = BTRFS_I(inode)->root->objectid; in btrfs_encode_fh()
35 fid->gen = inode->i_generation; in btrfs_encode_fh()
40 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh()
41 fid->parent_gen = parent->i_generation; in btrfs_encode_fh()
44 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh()
45 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh()
107 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent()
110 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local
117 root_objectid = fid->root_objectid; in btrfs_fh_to_parent()
121 root_objectid = fid->parent_root_objectid; in btrfs_fh_to_parent()
125 objectid = fid->parent_objectid; in btrfs_fh_to_parent()
126 generation = fid->parent_gen; in btrfs_fh_to_parent()
131 static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh, in btrfs_fh_to_dentry()
134 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_dentry() local
146 objectid = fid->objectid; in btrfs_fh_to_dentry()
147 root_objectid = fid->root_objectid; in btrfs_fh_to_dentry()
148 generation = fid->gen; in btrfs_fh_to_dentry()