Lines Matching refs:fid
20 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local
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()
37 fid->gen = inode->i_generation; in btrfs_encode_fh()
42 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh()
43 fid->parent_gen = parent->i_generation; in btrfs_encode_fh()
46 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh()
47 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh()
88 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent()
91 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local
98 root_objectid = fid->root_objectid; in btrfs_fh_to_parent()
102 root_objectid = fid->parent_root_objectid; in btrfs_fh_to_parent()
106 objectid = fid->parent_objectid; in btrfs_fh_to_parent()
107 generation = fid->parent_gen; in btrfs_fh_to_parent()
112 static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh, in btrfs_fh_to_dentry()
115 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_dentry() local
127 objectid = fid->objectid; in btrfs_fh_to_dentry()
128 root_objectid = fid->root_objectid; in btrfs_fh_to_dentry()
129 generation = fid->gen; in btrfs_fh_to_dentry()