Lines Matching refs:sfh
42 struct ceph_nfs_snapfh *sfh = (void *)rawfh; in ceph_encode_snapfh() local
63 sfh->parent_ino = ceph_ino(dir); in ceph_encode_snapfh()
64 sfh->hash = ceph_dentry_hash(dir, dentry); in ceph_encode_snapfh()
74 sfh->parent_ino = sfh->ino; in ceph_encode_snapfh()
75 sfh->hash = 0; in ceph_encode_snapfh()
77 sfh->ino = ceph_ino(inode); in ceph_encode_snapfh()
78 sfh->snapid = snapid; in ceph_encode_snapfh()
207 struct ceph_nfs_snapfh *sfh, in __snapfh_to_dentry() argument
220 vino.ino = sfh->parent_ino; in __snapfh_to_dentry()
221 if (sfh->snapid == CEPH_SNAPDIR) in __snapfh_to_dentry()
223 else if (sfh->ino == sfh->parent_ino) in __snapfh_to_dentry()
226 vino.snap = sfh->snapid; in __snapfh_to_dentry()
228 vino.ino = sfh->ino; in __snapfh_to_dentry()
229 vino.snap = sfh->snapid; in __snapfh_to_dentry()
255 if (!want_parent && sfh->ino != sfh->parent_ino) { in __snapfh_to_dentry()
257 cpu_to_le64(sfh->parent_ino); in __snapfh_to_dentry()
259 cpu_to_le32(sfh->hash); in __snapfh_to_dentry()
287 vino.snap, sfh->parent_ino, sfh->hash, err); in __snapfh_to_dentry()
304 struct ceph_nfs_snapfh *sfh = (void *)fid->raw; in ceph_fh_to_dentry() local
305 return __snapfh_to_dentry(sb, sfh, false); in ceph_fh_to_dentry()
424 struct ceph_nfs_snapfh *sfh = (void *)fid->raw; in ceph_fh_to_parent() local
425 return __snapfh_to_dentry(sb, sfh, true); in ceph_fh_to_parent()