Lines Matching full:connected

39  * "layer N connected" ancestor and verifying that all parents along the way are
42 * making that ancestor "layer N connected". For example:
50 * in ovl_lookup_real_ancestor() will not be able to lookup a connected overlay
51 * dentry from the connected lower dentry /a/b/c.
55 * /a/b. After copy up (and index) of /a/b, it will become "layer 2 connected"
58 * a connected overlay dentry will be accomplished.
62 * layer 1. If that improvement is made, then the check for "layer N connected"
93 * @dentry is "connected" if all ancestors up to root or a "connected" ancestor
95 * copy up a "connectable" ancestor to make it "connected". A "connected" dentry
96 * cannot become non "connected", so cache positive result in dentry flags.
98 * Return the connected origin layer or < 0 on error.
133 /* If @parent is connected or indexed we are done */ in ovl_connect_layer()
172 * (*) Decoding a connected overlay dir from real lower dentry is not always
215 * ovl_connect_layer() will try to make origin's layer "connected" by in ovl_check_encode_origin()
354 * @connected: parent overlay dentry
359 * Lookup a child overlay dentry in @connected with the same name as the @real
361 * @connected, and @real is the real dentry for the result.
364 * %-ECHILD if the parent of @real is no longer the real dentry for @connected.
368 static struct dentry *ovl_lookup_real_one(struct dentry *connected, in ovl_lookup_real_one() argument
383 this = lookup_noperm_unlocked(&name.name, connected); in ovl_lookup_real_one()
387 if (ovl_dentry_real_at(connected, layer->idx) != real->d_parent) in ovl_lookup_real_one()
405 pr_warn_ratelimited("failed to lookup one by real (%pd2, layer=%d, connected=%pd2, err=%i)\n", in ovl_lookup_real_one()
406 real, layer->idx, connected, err); in ovl_lookup_real_one()
450 /* Get connected upper overlay dir from index */ in ovl_lookup_real_inode()
463 * connected/hashed upper parent (or up to root). in ovl_lookup_real_inode()
533 * Lookup a connected overlay dentry whose real dentry is @real.
541 struct dentry *connected; in ovl_lookup_real() local
544 connected = ovl_lookup_real_ancestor(sb, real, layer); in ovl_lookup_real()
545 if (IS_ERR(connected)) in ovl_lookup_real()
546 return connected; in ovl_lookup_real()
551 struct dentry *real_connected = ovl_dentry_real_at(connected, in ovl_lookup_real()
557 /* Find the topmost dentry not yet connected */ in ovl_lookup_real()
574 dput(connected); in ovl_lookup_real()
575 connected = dget(sb->s_root); in ovl_lookup_real()
595 this = ovl_lookup_real_one(connected, next, layer); in ovl_lookup_real()
601 * overlay rename of child away from 'connected' parent. in ovl_lookup_real()
615 dput(connected); in ovl_lookup_real()
616 connected = this; in ovl_lookup_real()
627 return connected; in ovl_lookup_real()
630 pr_warn_ratelimited("failed to lookup by real (%pd2, layer=%d, connected=%pd2, err=%i)\n", in ovl_lookup_real()
631 real, layer->idx, connected, err); in ovl_lookup_real()
632 dput(connected); in ovl_lookup_real()
660 * If real dentry is connected and hashed, get a connected overlay in ovl_get_dentry()
726 /* Then try to get a connected upper dir by index */ in ovl_lower_fh_to_d()
753 /* Get a connected non-upper dir or disconnected non-dir */ in ovl_lower_fh_to_d()
840 * ovl_fh_to_dentry() returns connected dir overlay dentries and in ovl_get_name()
850 * ovl_fh_to_dentry() returns connected dir overlay dentries, so we in ovl_get_parent()