Lines Matching full:upper
235 static int ovl_set_opaque_xerr(struct dentry *dentry, struct dentry *upper, in ovl_set_opaque_xerr() argument
241 err = ovl_check_setxattr(ofs, upper, OVL_XATTR_OPAQUE, "y", 1, xerr); in ovl_set_opaque_xerr()
251 * Fail with -EIO when trying to create opaque dir and upper doesn't in ovl_set_opaque()
259 * Common operations required to be done after creation of file on upper.
307 /* Force lookup of new upper hardlink to find its lower */ in ovl_instantiate()
371 struct dentry *upper; in ovl_clear_empty() local
392 upper = upperpath.dentry; in ovl_clear_empty()
393 if (upper->d_parent->d_inode != udir) in ovl_clear_empty()
415 err = ovl_do_rename(ofs, wdir, opaquedir, udir, upper, RENAME_EXCHANGE); in ovl_clear_empty()
419 ovl_cleanup_whiteouts(ofs, upper, list); in ovl_clear_empty()
420 ovl_cleanup(ofs, wdir, upper); in ovl_clear_empty()
423 /* dentry's upper doesn't match now, get rid of it */ in ovl_clear_empty()
454 struct dentry *upper; in ovl_create_over_whiteout() local
474 upper = ovl_lookup_upper(ofs, dentry->d_name.name, upperdir, in ovl_create_over_whiteout()
476 err = PTR_ERR(upper); in ovl_create_over_whiteout()
477 if (IS_ERR(upper)) in ovl_create_over_whiteout()
481 if (d_is_negative(upper) || !ovl_upper_is_whiteout(ofs, upper)) in ovl_create_over_whiteout()
522 err = ovl_do_rename(ofs, wdir, newdentry, udir, upper, in ovl_create_over_whiteout()
527 ovl_cleanup(ofs, wdir, upper); in ovl_create_over_whiteout()
529 err = ovl_do_rename(ofs, wdir, newdentry, udir, upper, 0); in ovl_create_over_whiteout()
540 dput(upper); in ovl_create_over_whiteout()
749 static bool ovl_matches_upper(struct dentry *dentry, struct dentry *upper) in ovl_matches_upper() argument
751 return d_inode(ovl_dentry_upper(dentry)) == d_inode(upper); in ovl_matches_upper()
760 struct dentry *upper; in ovl_remove_and_whiteout() local
778 upper = ovl_lookup_upper(ofs, dentry->d_name.name, upperdir, in ovl_remove_and_whiteout()
780 err = PTR_ERR(upper); in ovl_remove_and_whiteout()
781 if (IS_ERR(upper)) in ovl_remove_and_whiteout()
785 if ((opaquedir && upper != opaquedir) || in ovl_remove_and_whiteout()
787 !ovl_matches_upper(dentry, upper))) { in ovl_remove_and_whiteout()
791 err = ovl_cleanup_and_whiteout(ofs, d_inode(upperdir), upper); in ovl_remove_and_whiteout()
799 dput(upper); in ovl_remove_and_whiteout()
814 struct dentry *upper; in ovl_remove_upper() local
826 upper = ovl_lookup_upper(ofs, dentry->d_name.name, upperdir, in ovl_remove_upper()
828 err = PTR_ERR(upper); in ovl_remove_upper()
829 if (IS_ERR(upper)) in ovl_remove_upper()
833 if ((opaquedir && upper != opaquedir) || in ovl_remove_upper()
834 (!opaquedir && !ovl_matches_upper(dentry, upper))) in ovl_remove_upper()
838 err = ovl_do_rmdir(ofs, dir, upper); in ovl_remove_upper()
840 err = ovl_do_unlink(ofs, dir, upper); in ovl_remove_upper()
852 dput(upper); in ovl_remove_upper()
895 /* No need to clean pure upper removed by vfs_rmdir() */ in ovl_do_remove()
1033 * in general as two upper hardlinks could be in different in ovl_need_absolute_redirect()
1180 * When ovl_iterate() iterates an "impure" upper dir, it will in ovl_rename()