Lines Matching refs:fid
21 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local
36 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh()
37 fid->root_objectid = btrfs_root_id(BTRFS_I(inode)->root); in btrfs_encode_fh()
38 fid->gen = inode->i_generation; in btrfs_encode_fh()
43 fid->parent_objectid = btrfs_ino(BTRFS_I(parent)); in btrfs_encode_fh()
44 fid->parent_gen = parent->i_generation; in btrfs_encode_fh()
47 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh()
48 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh()
100 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent()
103 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local
110 root_objectid = fid->root_objectid; in btrfs_fh_to_parent()
114 root_objectid = fid->parent_root_objectid; in btrfs_fh_to_parent()
118 objectid = fid->parent_objectid; in btrfs_fh_to_parent()
119 generation = fid->parent_gen; in btrfs_fh_to_parent()
124 static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh, in btrfs_fh_to_dentry()
127 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_dentry() local
139 objectid = fid->objectid; in btrfs_fh_to_dentry()
140 root_objectid = fid->root_objectid; in btrfs_fh_to_dentry()
141 generation = fid->gen; in btrfs_fh_to_dentry()