Lines Matching refs:fh
237 struct ovl_fh *fh = NULL; in ovl_dentry_to_fid() local
250 fh = ovl_encode_real_fh(ofs, enc_lower ? ovl_inode_lower(inode) : in ovl_dentry_to_fid()
252 if (IS_ERR(fh)) in ovl_dentry_to_fid()
253 return PTR_ERR(fh); in ovl_dentry_to_fid()
255 len = OVL_FH_LEN(fh); in ovl_dentry_to_fid()
257 memcpy(fid, fh, len); in ovl_dentry_to_fid()
261 kfree(fh); in ovl_dentry_to_fid()
672 struct ovl_fh *fh) in ovl_upper_fh_to_d() argument
681 upper = ovl_decode_real_fh(ofs, fh, ovl_upper_mnt(ofs), true); in ovl_upper_fh_to_d()
692 struct ovl_fh *fh) in ovl_lower_fh_to_d() argument
703 err = ovl_check_origin_fh(ofs, fh, false, NULL, &stack); in ovl_lower_fh_to_d()
723 index = ovl_get_index_fh(ofs, fh); in ovl_lower_fh_to_d()
748 err = ovl_check_origin_fh(ofs, fh, true, NULL, &stack); in ovl_lower_fh_to_d()
773 struct ovl_fh *fh; in ovl_fid_to_fh() local
785 fh = kzalloc(buflen, GFP_KERNEL); in ovl_fid_to_fh()
786 if (!fh) in ovl_fid_to_fh()
790 memcpy(fh->buf, fid, buflen - OVL_FH_WIRE_OFFSET); in ovl_fid_to_fh()
791 return fh; in ovl_fid_to_fh()
798 struct ovl_fh *fh = NULL; in ovl_fh_to_dentry() local
803 fh = ovl_fid_to_fh(fid, len, fh_type); in ovl_fh_to_dentry()
804 err = PTR_ERR(fh); in ovl_fh_to_dentry()
805 if (IS_ERR(fh)) in ovl_fh_to_dentry()
808 err = ovl_check_fh_len(fh, len); in ovl_fh_to_dentry()
812 flags = fh->fb.flags; in ovl_fh_to_dentry()
814 ovl_upper_fh_to_d(sb, fh) : in ovl_fh_to_dentry()
815 ovl_lower_fh_to_d(sb, fh); in ovl_fh_to_dentry()
822 if (!IS_ERR_OR_NULL(fh) && fh != (void *)fid) in ovl_fh_to_dentry()
823 kfree(fh); in ovl_fh_to_dentry()