Lines Matching refs:fid
19 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local
31 fid->objectid = BTRFS_I(inode)->location.objectid; in btrfs_encode_fh()
32 fid->root_objectid = BTRFS_I(inode)->root->objectid; in btrfs_encode_fh()
33 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()
48 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh()
49 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh()
93 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent()
96 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local
103 root_objectid = fid->root_objectid; in btrfs_fh_to_parent()
107 root_objectid = fid->parent_root_objectid; in btrfs_fh_to_parent()
111 objectid = fid->parent_objectid; in btrfs_fh_to_parent()
112 generation = fid->parent_gen; in btrfs_fh_to_parent()
117 static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh, in btrfs_fh_to_dentry()
120 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_dentry() local
132 objectid = fid->objectid; in btrfs_fh_to_dentry()
133 root_objectid = fid->root_objectid; in btrfs_fh_to_dentry()
134 generation = fid->gen; in btrfs_fh_to_dentry()