Lines Matching full: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
177 * (*) Decoding a connected overlay dir from real lower dentry is not always
292 * Find or instantiate an overlay dentry from real dentries and index.
374 * Lookup a child overlay dentry to get a connected overlay dentry whose real
375 * dentry is @real. If @real is on upper layer, we lookup a child overlay
376 * dentry with the same name as the real dentry. Otherwise, we need to consult
380 struct dentry *real, in ovl_lookup_real_one() argument
389 * Lookup child overlay dentry by real name. The dir mutex protects us in ovl_lookup_real_one()
391 * real has already been moved to a parent that is not under the in ovl_lookup_real_one()
393 * connected real path from the top. in ovl_lookup_real_one()
397 parent = dget_parent(real); in ovl_lookup_real_one()
402 * We also need to take a snapshot of real dentry name to protect us in ovl_lookup_real_one()
405 * pointer because we hold no lock on the real dentry. in ovl_lookup_real_one()
407 take_dentry_name_snapshot(&name, real); in ovl_lookup_real_one()
422 } else if (ovl_dentry_real_at(this, layer->idx) != real) { in ovl_lookup_real_one()
434 pr_warn_ratelimited("failed to lookup one by real (%pd2, layer=%d, connected=%pd2, err=%i)\n", in ovl_lookup_real_one()
435 real, layer->idx, connected, err); in ovl_lookup_real_one()
441 struct dentry *real,
445 * Lookup an indexed or hashed overlay dentry by real inode.
448 struct dentry *real, in ovl_lookup_real_inode() argument
460 inode = ovl_lookup_inode(sb, real, !layer->idx); in ovl_lookup_real_inode()
472 if (!this && layer->idx && ofs->indexdir && !WARN_ON(!d_is_dir(real))) { in ovl_lookup_real_inode()
473 index = ovl_lookup_index(ofs, NULL, real, false); in ovl_lookup_real_inode()
500 if (ovl_dentry_real_at(this, layer->idx) != real) { in ovl_lookup_real_inode()
509 * Lookup an indexed or hashed overlay dentry, whose real dentry is an
510 * ancestor of @real.
513 struct dentry *real, in ovl_lookup_real_ancestor() argument
519 if (real == layer->mnt->mnt_root) in ovl_lookup_real_ancestor()
523 next = dget(real); in ovl_lookup_real_ancestor()
529 * cache or in index by real inode. in ovl_lookup_real_ancestor()
541 * If @real has been moved out of the layer root directory, in ovl_lookup_real_ancestor()
542 * we will eventully hit the real fs root. This cannot happen in ovl_lookup_real_ancestor()
561 * Lookup a connected overlay dentry whose real dentry is @real.
562 * If @real is on upper layer, we lookup a child overlay dentry with the same
563 * path the real dentry. Otherwise, we need to consult index for lookup.
566 struct dentry *real, in ovl_lookup_real() argument
572 connected = ovl_lookup_real_ancestor(sb, real, layer); in ovl_lookup_real()
582 if (real_connected == real) in ovl_lookup_real()
586 next = dget(real); in ovl_lookup_real()
594 * If real has been moved out of 'real_connected', in ovl_lookup_real()
608 * If real file has been moved out of the layer root in ovl_lookup_real()
609 * directory, we will eventully hit the real fs root. in ovl_lookup_real()
632 * still an ancestor of 'real'. There is a good chance in ovl_lookup_real()
638 this = ovl_lookup_real_ancestor(sb, real, in ovl_lookup_real()
658 pr_warn_ratelimited("failed to lookup by real (%pd2, layer=%d, connected=%pd2, err=%i)\n", in ovl_lookup_real()
659 real, layer->idx, connected, err); in ovl_lookup_real()
665 * Get an overlay dentry from upper/lower real dentries and index.
674 struct dentry *real = upper ?: (index ?: lowerpath->dentry); in ovl_get_dentry() local
677 * Obtain a disconnected overlay dentry from a non-dir real dentry in ovl_get_dentry()
680 if (!d_is_dir(real)) in ovl_get_dentry()
684 if ((real->d_flags & DCACHE_DISCONNECTED) || d_unhashed(real)) in ovl_get_dentry()
688 * If real dentry is connected and hashed, get a connected overlay in ovl_get_dentry()
689 * dentry whose real dentry is @real. in ovl_get_dentry()
691 return ovl_lookup_real(sb, real, layer); in ovl_get_dentry()