Lines Matching defs:upperdentry

116 static struct ovl_fh *ovl_get_fh(struct ovl_fs *ofs, struct dentry *upperdentry,
122 res = ovl_getxattr_upper(ofs, upperdentry, ox, NULL, 0);
136 res = ovl_getxattr_upper(ofs, upperdentry, ox, fh->buf, res);
422 struct dentry *upperdentry, struct ovl_path **stackp)
447 if (upperdentry && !ovl_upper_is_whiteout(ofs, upperdentry) &&
448 inode_wrong_type(d_inode(upperdentry), d_inode(origin)->i_mode))
466 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT,
472 static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry,
475 struct ovl_fh *fh = ovl_get_fh(ofs, upperdentry, OVL_XATTR_ORIGIN);
481 err = ovl_check_origin_fh(ofs, fh, false, upperdentry, stackp);
1038 struct dentry *upperdir, *upperdentry = NULL;
1068 err = ovl_lookup_layer(upperdir, &d, &upperdentry, true);
1072 if (upperdentry && upperdentry->d_flags & DCACHE_OP_REAL) {
1073 dput(upperdentry);
1077 if (upperdentry && !d.is_dir) {
1088 err = ovl_check_origin(ofs, upperdentry, &origin_path);
1142 if (upperdentry && !ctr && !ofs->noxattr && d.is_dir) {
1143 err = ovl_fix_origin(ofs, dentry, this, upperdentry);
1159 if (upperdentry && !ctr &&
1162 err = ovl_verify_origin(ofs, upperdentry, this, false);
1172 if (!upperdentry && !d.is_dir && !ctr && d.metacopy)
1236 } else if (!d.is_dir && upperdentry && !ctr && origin_path) {
1248 * Always lookup index if there is no-upperdentry.
1250 * For the case of upperdentry, we have set origin by now if it
1266 if (!upperdentry && ctr)
1271 index = ovl_lookup_index(ofs, upperdentry, origin, true);
1293 if (upperdentry)
1297 .dentry = upperdentry = dget(index),
1303 * assignment of happens only if upperdentry is non-NULL, and
1304 * this one only if upperdentry is NULL.
1319 if (upperdentry || ctr) {
1321 .upperdentry = upperdentry,
1336 if (upperdentry && !uppermetacopy)
1343 ovl_dentry_init_reval(dentry, upperdentry, OVL_I_E(inode));
1365 dput(upperdentry);