Lines Matching refs:real
41 * Before encoding a non-upper directory file handle from real layer N, we need
42 * to check if it will be possible to reconnect an overlay dentry from the real
176 * (*) Connecting an overlay dir from real lower dentry is not always
276 * Find or instantiate an overlay dentry from real dentries and index.
357 * Lookup a child overlay dentry to get a connected overlay dentry whose real
358 * dentry is @real. If @real is on upper layer, we lookup a child overlay
359 * dentry with the same name as the real dentry. Otherwise, we need to consult
363 struct dentry *real,
372 * Lookup child overlay dentry by real name. The dir mutex protects us
374 * real has already been moved to a parent that is not under the
376 * connected real path from the top.
380 parent = dget_parent(real);
385 * We also need to take a snapshot of real dentry name to protect us
388 * pointer because we hold no lock on the real dentry.
390 take_dentry_name_snapshot(&name, real);
400 } else if (ovl_dentry_real_at(this, layer->idx) != real) {
412 pr_warn_ratelimited("failed to lookup one by real (%pd2, layer=%d, connected=%pd2, err=%i)\n",
413 real, layer->idx, connected, err);
419 struct dentry *real,
423 * Lookup an indexed or hashed overlay dentry by real inode.
426 struct dentry *real,
438 inode = ovl_lookup_inode(sb, real, !layer->idx);
450 if (!this && layer->idx && ofs->indexdir && !WARN_ON(!d_is_dir(real))) {
451 index = ovl_lookup_index(ofs, NULL, real, false);
478 if (ovl_dentry_real_at(this, layer->idx) != real) {
487 * Lookup an indexed or hashed overlay dentry, whose real dentry is an
488 * ancestor of @real.
491 struct dentry *real,
497 if (real == layer->mnt->mnt_root)
501 next = dget(real);
507 * cache or in index by real inode.
519 * If @real has been moved out of the layer root directory,
520 * we will eventully hit the real fs root. This cannot happen
539 * Lookup a connected overlay dentry whose real dentry is @real.
540 * If @real is on upper layer, we lookup a child overlay dentry with the same
541 * path the real dentry. Otherwise, we need to consult index for lookup.
544 struct dentry *real,
550 connected = ovl_lookup_real_ancestor(sb, real, layer);
560 if (real_connected == real)
564 next = dget(real);
572 * If real has been moved out of 'real_connected',
586 * If real file has been moved out of the layer root
587 * directory, we will eventully hit the real fs root.
610 * still an ancestor of 'real'. There is a good chance
616 this = ovl_lookup_real_ancestor(sb, real,
636 pr_warn_ratelimited("failed to lookup by real (%pd2, layer=%d, connected=%pd2, err=%i)\n",
637 real, layer->idx, connected, err);
643 * Get an overlay dentry from upper/lower real dentries and index.
652 struct dentry *real = upper ?: (index ?: lowerpath->dentry);
655 * Obtain a disconnected overlay dentry from a non-dir real dentry
658 if (!d_is_dir(real))
662 if ((real->d_flags & DCACHE_DISCONNECTED) || d_unhashed(real))
666 * If real dentry is connected and hashed, get a connected overlay
667 * dentry whose real dentry is @real.
669 return ovl_lookup_real(sb, real, layer);