Lines Matching refs:opaquedir
368 struct dentry *opaquedir; in ovl_clear_empty() local
392 opaquedir = ovl_create_temp(ofs, workdir, OVL_CATTR(stat.mode)); in ovl_clear_empty()
393 err = PTR_ERR(opaquedir); in ovl_clear_empty()
394 if (IS_ERR(opaquedir)) in ovl_clear_empty()
397 err = ovl_copy_xattr(dentry->d_sb, &upperpath, opaquedir); in ovl_clear_empty()
401 err = ovl_set_opaque(dentry, opaquedir); in ovl_clear_empty()
405 inode_lock(opaquedir->d_inode); in ovl_clear_empty()
406 err = ovl_set_attr(ofs, opaquedir, &stat); in ovl_clear_empty()
407 inode_unlock(opaquedir->d_inode); in ovl_clear_empty()
411 err = ovl_do_rename(ofs, wdir, opaquedir, udir, upper, RENAME_EXCHANGE); in ovl_clear_empty()
422 return opaquedir; in ovl_clear_empty()
425 ovl_cleanup(ofs, wdir, opaquedir); in ovl_clear_empty()
426 dput(opaquedir); in ovl_clear_empty()
750 struct dentry *opaquedir = NULL; in ovl_remove_and_whiteout() local
757 opaquedir = ovl_clear_empty(dentry, list); in ovl_remove_and_whiteout()
758 err = PTR_ERR(opaquedir); in ovl_remove_and_whiteout()
759 if (IS_ERR(opaquedir)) in ovl_remove_and_whiteout()
774 if ((opaquedir && upper != opaquedir) || in ovl_remove_and_whiteout()
775 (!opaquedir && ovl_dentry_upper(dentry) && in ovl_remove_and_whiteout()
792 dput(opaquedir); in ovl_remove_and_whiteout()
804 struct dentry *opaquedir = NULL; in ovl_remove_upper() local
808 opaquedir = ovl_clear_empty(dentry, list); in ovl_remove_upper()
809 err = PTR_ERR(opaquedir); in ovl_remove_upper()
810 if (IS_ERR(opaquedir)) in ovl_remove_upper()
822 if ((opaquedir && upper != opaquedir) || in ovl_remove_upper()
823 (!opaquedir && !ovl_matches_upper(dentry, upper))) in ovl_remove_upper()
844 dput(opaquedir); in ovl_remove_upper()
1092 struct dentry *opaquedir = NULL; in ovl_rename() local
1157 opaquedir = ovl_clear_empty(new, &list); in ovl_rename()
1158 err = PTR_ERR(opaquedir); in ovl_rename()
1159 if (IS_ERR(opaquedir)) { in ovl_rename()
1160 opaquedir = NULL; in ovl_rename()
1210 if (opaquedir) { in ovl_rename()
1211 if (newdentry != opaquedir) in ovl_rename()
1289 dput(opaquedir); in ovl_rename()