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
176 * (*) Connecting an overlay dir from real lower dentry is not always
276 * Find or instantiate an overlay dentry from real dentries and index.
358 * Lookup a child overlay dentry to get a connected overlay dentry whose real
359 * dentry is @real. If @real is on upper layer, we lookup a child overlay
360 * dentry with the same name as the real dentry. Otherwise, we need to consult
364 struct dentry *real, in ovl_lookup_real_one() argument
373 * Lookup child overlay dentry by real name. The dir mutex protects us in ovl_lookup_real_one()
375 * real has already been moved to a parent that is not under the in ovl_lookup_real_one()
377 * connected real path from the top. in ovl_lookup_real_one()
381 parent = dget_parent(real); in ovl_lookup_real_one()
386 * We also need to take a snapshot of real dentry name to protect us in ovl_lookup_real_one()
389 * pointer because we hold no lock on the real dentry. in ovl_lookup_real_one()
391 take_dentry_name_snapshot(&name, real); in ovl_lookup_real_one()
401 } else if (ovl_dentry_real_at(this, layer->idx) != real) { in ovl_lookup_real_one()
413 pr_warn_ratelimited("failed to lookup one by real (%pd2, layer=%d, connected=%pd2, err=%i)\n", in ovl_lookup_real_one()
414 real, layer->idx, connected, err); in ovl_lookup_real_one()
420 struct dentry *real,
424 * Lookup an indexed or hashed overlay dentry by real inode.
427 struct dentry *real, in ovl_lookup_real_inode() argument
439 inode = ovl_lookup_inode(sb, real, !layer->idx); in ovl_lookup_real_inode()
451 if (!this && layer->idx && ofs->indexdir && !WARN_ON(!d_is_dir(real))) { in ovl_lookup_real_inode()
452 index = ovl_lookup_index(ofs, NULL, real, false); in ovl_lookup_real_inode()
479 if (ovl_dentry_real_at(this, layer->idx) != real) { in ovl_lookup_real_inode()
488 * Lookup an indexed or hashed overlay dentry, whose real dentry is an
489 * ancestor of @real.
492 struct dentry *real, in ovl_lookup_real_ancestor() argument
498 if (real == layer->mnt->mnt_root) in ovl_lookup_real_ancestor()
502 next = dget(real); in ovl_lookup_real_ancestor()
508 * cache or in index by real inode. in ovl_lookup_real_ancestor()
520 * If @real has been moved out of the layer root directory, in ovl_lookup_real_ancestor()
521 * we will eventully hit the real fs root. This cannot happen in ovl_lookup_real_ancestor()
540 * Lookup a connected overlay dentry whose real dentry is @real.
541 * If @real is on upper layer, we lookup a child overlay dentry with the same
542 * path the real dentry. Otherwise, we need to consult index for lookup.
545 struct dentry *real, in ovl_lookup_real() argument
551 connected = ovl_lookup_real_ancestor(sb, real, layer); in ovl_lookup_real()
561 if (real_connected == real) in ovl_lookup_real()
565 next = dget(real); in ovl_lookup_real()
573 * If real has been moved out of 'real_connected', in ovl_lookup_real()
587 * If real file has been moved out of the layer root in ovl_lookup_real()
588 * directory, we will eventully hit the real fs root. in ovl_lookup_real()
611 * still an ancestor of 'real'. There is a good chance in ovl_lookup_real()
617 this = ovl_lookup_real_ancestor(sb, real, in ovl_lookup_real()
637 pr_warn_ratelimited("failed to lookup by real (%pd2, layer=%d, connected=%pd2, err=%i)\n", in ovl_lookup_real()
638 real, layer->idx, connected, err); in ovl_lookup_real()
644 * Get an overlay dentry from upper/lower real dentries and index.
653 struct dentry *real = upper ?: (index ?: lowerpath->dentry); in ovl_get_dentry() local
656 * Obtain a disconnected overlay dentry from a non-dir real dentry in ovl_get_dentry()
659 if (!d_is_dir(real)) in ovl_get_dentry()
663 if ((real->d_flags & DCACHE_DISCONNECTED) || d_unhashed(real)) in ovl_get_dentry()
667 * If real dentry is connected and hashed, get a connected overlay in ovl_get_dentry()
668 * dentry whose real dentry is @real. in ovl_get_dentry()
670 return ovl_lookup_real(sb, real, layer); in ovl_get_dentry()