• Home
  • Raw
  • Download

Lines Matching refs:fh

217 	struct ovl_fh *fh = NULL;  in ovl_dentry_to_fid()  local
230 fh = ovl_encode_real_fh(ofs, enc_lower ? ovl_dentry_lower(dentry) : in ovl_dentry_to_fid()
232 if (IS_ERR(fh)) in ovl_dentry_to_fid()
233 return PTR_ERR(fh); in ovl_dentry_to_fid()
235 len = OVL_FH_LEN(fh); in ovl_dentry_to_fid()
237 memcpy(fid, fh, len); in ovl_dentry_to_fid()
241 kfree(fh); in ovl_dentry_to_fid()
680 struct ovl_fh *fh) in ovl_upper_fh_to_d() argument
689 upper = ovl_decode_real_fh(ofs, fh, ovl_upper_mnt(ofs), true); in ovl_upper_fh_to_d()
700 struct ovl_fh *fh) in ovl_lower_fh_to_d() argument
711 err = ovl_check_origin_fh(ofs, fh, false, NULL, &stack); in ovl_lower_fh_to_d()
731 index = ovl_get_index_fh(ofs, fh); in ovl_lower_fh_to_d()
756 err = ovl_check_origin_fh(ofs, fh, true, NULL, &stack); in ovl_lower_fh_to_d()
781 struct ovl_fh *fh; in ovl_fid_to_fh() local
793 fh = kzalloc(buflen, GFP_KERNEL); in ovl_fid_to_fh()
794 if (!fh) in ovl_fid_to_fh()
798 memcpy(fh->buf, fid, buflen - OVL_FH_WIRE_OFFSET); in ovl_fid_to_fh()
799 return fh; in ovl_fid_to_fh()
806 struct ovl_fh *fh = NULL; in ovl_fh_to_dentry() local
811 fh = ovl_fid_to_fh(fid, len, fh_type); in ovl_fh_to_dentry()
812 err = PTR_ERR(fh); in ovl_fh_to_dentry()
813 if (IS_ERR(fh)) in ovl_fh_to_dentry()
816 err = ovl_check_fh_len(fh, len); in ovl_fh_to_dentry()
820 flags = fh->fb.flags; in ovl_fh_to_dentry()
822 ovl_upper_fh_to_d(sb, fh) : in ovl_fh_to_dentry()
823 ovl_lower_fh_to_d(sb, fh); in ovl_fh_to_dentry()
830 if (!IS_ERR_OR_NULL(fh) && fh != (void *)fid) in ovl_fh_to_dentry()
831 kfree(fh); in ovl_fh_to_dentry()