Lines Matching refs:opaquedir
367 struct dentry *opaquedir; in ovl_clear_empty() local
391 opaquedir = ovl_create_temp(workdir, OVL_CATTR(stat.mode)); in ovl_clear_empty()
392 err = PTR_ERR(opaquedir); in ovl_clear_empty()
393 if (IS_ERR(opaquedir)) in ovl_clear_empty()
396 err = ovl_copy_xattr(dentry->d_sb, upper, opaquedir); in ovl_clear_empty()
400 err = ovl_set_opaque(dentry, opaquedir); in ovl_clear_empty()
404 inode_lock(opaquedir->d_inode); in ovl_clear_empty()
405 err = ovl_set_attr(opaquedir, &stat); in ovl_clear_empty()
406 inode_unlock(opaquedir->d_inode); in ovl_clear_empty()
410 err = ovl_do_rename(wdir, opaquedir, udir, upper, RENAME_EXCHANGE); in ovl_clear_empty()
421 return opaquedir; in ovl_clear_empty()
424 ovl_cleanup(wdir, opaquedir); in ovl_clear_empty()
425 dput(opaquedir); in ovl_clear_empty()
763 struct dentry *opaquedir = NULL; in ovl_remove_and_whiteout() local
770 opaquedir = ovl_clear_empty(dentry, list); in ovl_remove_and_whiteout()
771 err = PTR_ERR(opaquedir); in ovl_remove_and_whiteout()
772 if (IS_ERR(opaquedir)) in ovl_remove_and_whiteout()
787 if ((opaquedir && upper != opaquedir) || in ovl_remove_and_whiteout()
788 (!opaquedir && ovl_dentry_upper(dentry) && in ovl_remove_and_whiteout()
805 dput(opaquedir); in ovl_remove_and_whiteout()
816 struct dentry *opaquedir = NULL; in ovl_remove_upper() local
820 opaquedir = ovl_clear_empty(dentry, list); in ovl_remove_upper()
821 err = PTR_ERR(opaquedir); in ovl_remove_upper()
822 if (IS_ERR(opaquedir)) in ovl_remove_upper()
834 if ((opaquedir && upper != opaquedir) || in ovl_remove_upper()
835 (!opaquedir && !ovl_matches_upper(dentry, upper))) in ovl_remove_upper()
856 dput(opaquedir); in ovl_remove_upper()
1105 struct dentry *opaquedir = NULL; in ovl_rename() local
1169 opaquedir = ovl_clear_empty(new, &list); in ovl_rename()
1170 err = PTR_ERR(opaquedir); in ovl_rename()
1171 if (IS_ERR(opaquedir)) { in ovl_rename()
1172 opaquedir = NULL; in ovl_rename()
1222 if (opaquedir) { in ovl_rename()
1223 if (newdentry != opaquedir) in ovl_rename()
1301 dput(opaquedir); in ovl_rename()