Lines Matching full:upper
190 * We cannot set immutable and append-only flags on upper inode, in ovl_copy_fileattr()
191 * because we would not be able to link upper inode to upper dir in ovl_copy_fileattr()
192 * not set overlay private xattr on upper inode. in ovl_copy_fileattr()
198 pr_warn_once("copying fileattr: no xattr on upper\n"); in ovl_copy_fileattr()
210 * Returning an error if upper doesn't support fileattr will in ovl_copy_fileattr()
214 pr_warn_once("copying fileattr: no support on upper\n"); in ovl_copy_fileattr()
217 pr_warn("failed to retrieve upper fileattr (%pd2, err=%i)\n", in ovl_copy_fileattr()
327 * We do not hold upper sb_writers throughout the loop to avert in ovl_copy_up_file()
329 * - upper sb_writers in ovl_copy_up_file()
479 * up and a pure upper inode. in ovl_get_origin_fh()
488 struct dentry *upper) in ovl_set_origin_fh() argument
493 * Do not fail when upper doesn't support xattrs. in ovl_set_origin_fh()
495 err = ovl_check_setxattr(ofs, upper, OVL_XATTR_ORIGIN, fh->buf, in ovl_set_origin_fh()
502 /* Store file handle of @upper dir in @index dir entry */
503 static int ovl_set_upper_fh(struct ovl_fs *ofs, struct dentry *upper, in ovl_set_upper_fh() argument
509 fh = ovl_encode_real_fh(ofs, upper, true); in ovl_set_upper_fh()
525 struct dentry *upper) in ovl_create_index() argument
538 * to upper dir. in ovl_create_index()
559 err = ovl_set_upper_fh(ofs, upper, temp); in ovl_create_index()
600 struct dentry *upper; in ovl_link_up() local
607 /* Mark parent "impure" because it may now contain non-pure upper */ in ovl_link_up()
617 upper = ovl_lookup_upper(ofs, c->dentry->d_name.name, upperdir, in ovl_link_up()
619 err = PTR_ERR(upper); in ovl_link_up()
620 if (!IS_ERR(upper)) { in ovl_link_up()
621 err = ovl_do_link(ofs, ovl_dentry_upper(c->dentry), udir, upper); in ovl_link_up()
622 dput(upper); in ovl_link_up()
628 ovl_dentry_update_reval(c->dentry, upper); in ovl_link_up()
685 * Store identifier of lower inode in upper inode xattr to in ovl_copy_up_metadata()
723 /* fsync metadata before moving it into upper dir */ in ovl_copy_up_metadata()
760 * special files or when upper fs doesn't support O_TMPFILE.
768 struct dentry *temp, *upper, *trap; in ovl_copy_up_workdir() local
827 upper = ovl_lookup_upper(ofs, c->destname.name, c->destdir, in ovl_copy_up_workdir()
829 err = PTR_ERR(upper); in ovl_copy_up_workdir()
830 if (IS_ERR(upper)) in ovl_copy_up_workdir()
833 err = ovl_do_rename(ofs, wdir, temp, udir, upper, 0); in ovl_copy_up_workdir()
834 dput(upper); in ovl_copy_up_workdir()
868 struct dentry *temp, *upper; in ovl_copy_up_tmpfile() local
900 upper = ovl_lookup_upper(ofs, c->destname.name, c->destdir, in ovl_copy_up_tmpfile()
902 err = PTR_ERR(upper); in ovl_copy_up_tmpfile()
903 if (!IS_ERR(upper)) { in ovl_copy_up_tmpfile()
904 err = ovl_do_link(ofs, temp, udir, upper); in ovl_copy_up_tmpfile()
905 dput(upper); in ovl_copy_up_tmpfile()
934 * upper parent i_mutex for exclusion. Since rename can change d_parent it
948 * hardlinked to upper dir. Indexed dir is copied up to indexdir, in ovl_do_copy_up()
982 * because if we got here, it means that c->dentry has no upper in ovl_do_copy_up()
989 * upper in ovl_do_copy_up()
1112 * Writing to upper file will clear security.capability xattr. We in ovl_copy_up_meta_inode_data()
1224 * linking it to upper dir. in ovl_copy_up_flags()
1270 /* Copy up of disconnected dentry does not set upper alias */ in ovl_open_need_copy_up()