Lines Matching refs:ofs
185 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_check_encode_origin() local
207 if (d_is_dir(dentry) && ovl_upper_mnt(ofs)) in ovl_check_encode_origin()
214 static int ovl_dentry_to_fid(struct ovl_fs *ofs, struct dentry *dentry, in ovl_dentry_to_fid() argument
230 fh = ovl_encode_real_fh(ofs, enc_lower ? ovl_dentry_lower(dentry) : in ovl_dentry_to_fid()
253 struct ovl_fs *ofs = OVL_FS(inode->i_sb); in ovl_encode_fh() local
265 bytes = ovl_dentry_to_fid(ofs, dentry, fid, buflen); in ovl_encode_fh()
431 struct ovl_fs *ofs = sb->s_fs_info; in ovl_lookup_real_inode() local
452 if (!this && layer->idx && ofs->indexdir && !WARN_ON(!d_is_dir(real))) { in ovl_lookup_real_inode()
453 index = ovl_lookup_index(ofs, NULL, real, false); in ovl_lookup_real_inode()
460 struct dentry *upper = ovl_index_upper(ofs, index); in ovl_lookup_real_inode()
473 this = ovl_lookup_real(sb, upper, &ofs->layers[0]); in ovl_lookup_real_inode()
652 struct ovl_fs *ofs = sb->s_fs_info; in ovl_get_dentry() local
653 const struct ovl_layer *layer = upper ? &ofs->layers[0] : lowerpath->layer; in ovl_get_dentry()
677 struct ovl_fs *ofs = sb->s_fs_info; in ovl_upper_fh_to_d() local
681 if (!ovl_upper_mnt(ofs)) in ovl_upper_fh_to_d()
684 upper = ovl_decode_real_fh(ofs, fh, ovl_upper_mnt(ofs), true); in ovl_upper_fh_to_d()
697 struct ovl_fs *ofs = sb->s_fs_info; in ovl_lower_fh_to_d() local
706 err = ovl_check_origin_fh(ofs, fh, false, NULL, &stack); in ovl_lower_fh_to_d()
725 if (ofs->indexdir) { in ovl_lower_fh_to_d()
726 index = ovl_get_index_fh(ofs, fh); in ovl_lower_fh_to_d()
736 struct dentry *upper = ovl_index_upper(ofs, index); in ovl_lower_fh_to_d()
751 err = ovl_check_origin_fh(ofs, fh, true, NULL, &stack); in ovl_lower_fh_to_d()
756 err = ovl_verify_origin(ofs, index, origin.dentry, false); in ovl_lower_fh_to_d()