Lines Matching full:upper
41 * Before encoding a non-upper directory file handle from real layer N, we need
53 * copied up and renamed, upper dir /a will be indexed by lower dir /a from
93 /* We can get upper/overlay path from indexed/lower dentry */ in ovl_connectable_layer()
158 * encoding also after copy up. If non-pure upper is not indexed, then it was
160 * about staying consistent with pre copy up encoding and we encode an upper
161 * file handle. Overlay root dentry is a private case of non-indexed upper.
168 * Pure upper | U
169 * Non-indexed upper | U
170 * Indexed upper | L (*)
171 * Non-upper | L (*)
173 * U = upper file handle
181 * Return 0 for upper file handle, > 0 for lower file handle or < 0 on error.
187 /* Upper file handle for pure upper */ in ovl_check_encode_origin()
192 * Upper file handle for non-indexed upper. in ovl_check_encode_origin()
194 * Root is never indexed, so if there's an upper layer, encode upper for in ovl_check_encode_origin()
203 * lower dir or under a non-indexed upper is not always possible. in ovl_check_encode_origin()
210 /* Lower file handle for indexed and non-upper dir/non-dir */ in ovl_check_encode_origin()
222 * Check if we should encode a lower or upper file handle and maybe in ovl_dentry_to_fid()
229 /* Encode an upper or lower file handle */ in ovl_dentry_to_fid()
286 struct dentry *upper = upper_alias ?: index; in ovl_obtain_alias() local
297 if (d_is_dir(upper ?: lower)) in ovl_obtain_alias()
300 oip.upperdentry = dget(upper); in ovl_obtain_alias()
303 dput(upper); in ovl_obtain_alias()
307 if (upper) in ovl_obtain_alias()
329 ovl_dentry_update_reval(dentry, upper, in ovl_obtain_alias()
342 /* Get the upper or lower dentry in stach whose on layer @idx */
361 * dentry is @real. If @real is on upper layer, we lookup a child overlay
443 * Decoding upper dir from index is expensive, so first try to lookup in ovl_lookup_real_inode()
464 /* Get connected upper overlay dir from index */ in ovl_lookup_real_inode()
466 struct dentry *upper = ovl_index_upper(ofs, index); in ovl_lookup_real_inode() local
469 if (IS_ERR_OR_NULL(upper)) in ovl_lookup_real_inode()
470 return upper; in ovl_lookup_real_inode()
474 * ovl_lookup_real() in upper layer. The first level call walks in ovl_lookup_real_inode()
476 * recursive call walks back from indexed upper to the topmost in ovl_lookup_real_inode()
477 * connected/hashed upper parent (or up to root). in ovl_lookup_real_inode()
479 this = ovl_lookup_real(sb, upper, &ofs->layers[0]); in ovl_lookup_real_inode()
480 dput(upper); in ovl_lookup_real_inode()
548 * If @real is on upper layer, we lookup a child overlay dentry with the same
651 * Get an overlay dentry from upper/lower real dentries and index.
654 struct dentry *upper, in ovl_get_dentry() argument
659 const struct ovl_layer *layer = upper ? &ofs->layers[0] : lowerpath->layer; in ovl_get_dentry()
660 struct dentry *real = upper ?: (index ?: lowerpath->dentry); in ovl_get_dentry()
667 return ovl_obtain_alias(sb, upper, lowerpath, index); in ovl_get_dentry()
685 struct dentry *upper; in ovl_upper_fh_to_d() local
690 upper = ovl_decode_real_fh(ofs, fh, ovl_upper_mnt(ofs), true); in ovl_upper_fh_to_d()
691 if (IS_ERR_OR_NULL(upper)) in ovl_upper_fh_to_d()
692 return upper; in ovl_upper_fh_to_d()
694 dentry = ovl_get_dentry(sb, upper, NULL, NULL); in ovl_upper_fh_to_d()
695 dput(upper); in ovl_upper_fh_to_d()
730 /* Then lookup indexed upper/whiteout by origin fh */ in ovl_lower_fh_to_d()
740 /* Then try to get a connected upper dir by index */ in ovl_lower_fh_to_d()
742 struct dentry *upper = ovl_index_upper(ofs, index); in ovl_lower_fh_to_d() local
744 err = PTR_ERR(upper); in ovl_lower_fh_to_d()
745 if (IS_ERR_OR_NULL(upper)) in ovl_lower_fh_to_d()
748 dentry = ovl_get_dentry(sb, upper, NULL, NULL); in ovl_lower_fh_to_d()
749 dput(upper); in ovl_lower_fh_to_d()
767 /* Get a connected non-upper dir or disconnected non-dir */ in ovl_lower_fh_to_d()