Lines Matching full:upper
153 * We cannot set immutable and append-only flags on upper inode, in ovl_copy_fileattr()
154 * because we would not be able to link upper inode to upper dir in ovl_copy_fileattr()
155 * not set overlay private xattr on upper inode. in ovl_copy_fileattr()
161 pr_warn_once("copying fileattr: no xattr on upper\n"); in ovl_copy_fileattr()
173 * Returning an error if upper doesn't support fileattr will in ovl_copy_fileattr()
177 pr_warn_once("copying fileattr: no support on upper\n"); in ovl_copy_fileattr()
180 pr_warn("failed to retrieve upper fileattr (%pd2, err=%i)\n", in ovl_copy_fileattr()
393 struct dentry *upper) in ovl_set_origin() argument
401 * up and a pure upper inode. in ovl_set_origin()
410 * Do not fail when upper doesn't support xattrs. in ovl_set_origin()
412 err = ovl_check_setxattr(ofs, upper, OVL_XATTR_ORIGIN, fh->buf, in ovl_set_origin()
420 /* Store file handle of @upper dir in @index dir entry */
421 static int ovl_set_upper_fh(struct ovl_fs *ofs, struct dentry *upper, in ovl_set_upper_fh() argument
427 fh = ovl_encode_real_fh(ofs, upper, true); in ovl_set_upper_fh()
443 struct dentry *upper) in ovl_create_index() argument
456 * to upper dir. in ovl_create_index()
477 err = ovl_set_upper_fh(ofs, upper, temp); in ovl_create_index()
515 struct dentry *upper; in ovl_link_up() local
520 /* Mark parent "impure" because it may now contain non-pure upper */ in ovl_link_up()
530 upper = ovl_lookup_upper(ofs, c->dentry->d_name.name, upperdir, in ovl_link_up()
532 err = PTR_ERR(upper); in ovl_link_up()
533 if (!IS_ERR(upper)) { in ovl_link_up()
534 err = ovl_do_link(ofs, ovl_dentry_upper(c->dentry), udir, upper); in ovl_link_up()
535 dput(upper); in ovl_link_up()
593 * Store identifier of lower inode in upper inode xattr to in ovl_copy_up_metadata()
652 * special files or when upper fs doesn't support O_TMPFILE.
660 struct dentry *temp, *upper; in ovl_copy_up_workdir() local
705 upper = ovl_lookup_upper(ofs, c->destname.name, c->destdir, in ovl_copy_up_workdir()
707 err = PTR_ERR(upper); in ovl_copy_up_workdir()
708 if (IS_ERR(upper)) in ovl_copy_up_workdir()
711 err = ovl_do_rename(ofs, wdir, temp, udir, upper, 0); in ovl_copy_up_workdir()
712 dput(upper); in ovl_copy_up_workdir()
738 struct dentry *temp, *upper; in ovl_copy_up_tmpfile() local
766 upper = ovl_lookup_upper(ofs, c->destname.name, c->destdir, in ovl_copy_up_tmpfile()
768 err = PTR_ERR(upper); in ovl_copy_up_tmpfile()
769 if (!IS_ERR(upper)) { in ovl_copy_up_tmpfile()
770 err = ovl_do_link(ofs, temp, udir, upper); in ovl_copy_up_tmpfile()
771 dput(upper); in ovl_copy_up_tmpfile()
792 * upper parent i_mutex for exclusion. Since rename can change d_parent it
804 * hardlinked to upper dir. Indexed dir is copied up to indexdir, in ovl_do_copy_up()
830 * upper in ovl_do_copy_up()
933 * Writing to upper file will clear security.capability xattr. We in ovl_copy_up_meta_inode_data()
1028 * linking it to upper dir. in ovl_copy_up_flags()
1065 /* Copy up of disconnected dentry does not set upper alias */ in ovl_open_need_copy_up()