Lines Matching refs:upperdentry

115 static struct ovl_fh *ovl_get_fh(struct ovl_fs *ofs, struct dentry *upperdentry,
121 res = ovl_getxattr_upper(ofs, upperdentry, ox, NULL, 0);
135 res = ovl_getxattr_upper(ofs, upperdentry, ox, fh->buf, res);
416 struct dentry *upperdentry, struct ovl_path **stackp)
441 if (upperdentry && !ovl_is_whiteout(upperdentry) &&
442 inode_wrong_type(d_inode(upperdentry), d_inode(origin)->i_mode))
460 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT,
466 static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry,
469 struct ovl_fh *fh = ovl_get_fh(ofs, upperdentry, OVL_XATTR_ORIGIN);
475 err = ovl_check_origin_fh(ofs, fh, false, upperdentry, stackp);
1009 struct dentry *upperdir, *upperdentry = NULL;
1039 err = ovl_lookup_layer(upperdir, &d, &upperdentry, true);
1043 if (upperdentry && upperdentry->d_flags & DCACHE_OP_REAL) {
1044 dput(upperdentry);
1048 if (upperdentry && !d.is_dir) {
1059 err = ovl_check_origin(ofs, upperdentry, &origin_path);
1113 if (upperdentry && !ctr && !ofs->noxattr && d.is_dir) {
1114 err = ovl_fix_origin(ofs, dentry, this, upperdentry);
1130 if (upperdentry && !ctr &&
1133 err = ovl_verify_origin(ofs, upperdentry, this, false);
1143 if (!upperdentry && !d.is_dir && !ctr && d.metacopy)
1207 } else if (!d.is_dir && upperdentry && !ctr && origin_path) {
1219 * Always lookup index if there is no-upperdentry.
1221 * For the case of upperdentry, we have set origin by now if it
1237 if (!upperdentry && ctr)
1242 index = ovl_lookup_index(ofs, upperdentry, origin, true);
1262 if (upperdentry)
1266 .dentry = upperdentry = dget(index),
1272 * assignment of happens only if upperdentry is non-NULL, and
1273 * this one only if upperdentry is NULL.
1288 if (upperdentry || ctr) {
1290 .upperdentry = upperdentry,
1305 if (upperdentry && !uppermetacopy)
1312 ovl_dentry_init_reval(dentry, upperdentry, OVL_I_E(inode));
1334 dput(upperdentry);