Lines Matching refs:opaquedir
372 struct dentry *opaquedir; in ovl_clear_empty() local
396 opaquedir = ovl_create_temp(ofs, workdir, OVL_CATTR(stat.mode)); in ovl_clear_empty()
397 err = PTR_ERR(opaquedir); in ovl_clear_empty()
398 if (IS_ERR(opaquedir)) in ovl_clear_empty()
401 err = ovl_copy_xattr(dentry->d_sb, &upperpath, opaquedir); in ovl_clear_empty()
405 err = ovl_set_opaque(dentry, opaquedir); in ovl_clear_empty()
409 inode_lock(opaquedir->d_inode); in ovl_clear_empty()
410 err = ovl_set_attr(ofs, opaquedir, &stat); in ovl_clear_empty()
411 inode_unlock(opaquedir->d_inode); in ovl_clear_empty()
415 err = ovl_do_rename(ofs, wdir, opaquedir, udir, upper, RENAME_EXCHANGE); in ovl_clear_empty()
426 return opaquedir; in ovl_clear_empty()
429 ovl_cleanup(ofs, wdir, opaquedir); in ovl_clear_empty()
430 dput(opaquedir); in ovl_clear_empty()
761 struct dentry *opaquedir = NULL; in ovl_remove_and_whiteout() local
768 opaquedir = ovl_clear_empty(dentry, list); in ovl_remove_and_whiteout()
769 err = PTR_ERR(opaquedir); in ovl_remove_and_whiteout()
770 if (IS_ERR(opaquedir)) in ovl_remove_and_whiteout()
785 if ((opaquedir && upper != opaquedir) || in ovl_remove_and_whiteout()
786 (!opaquedir && ovl_dentry_upper(dentry) && in ovl_remove_and_whiteout()
803 dput(opaquedir); in ovl_remove_and_whiteout()
815 struct dentry *opaquedir = NULL; in ovl_remove_upper() local
819 opaquedir = ovl_clear_empty(dentry, list); in ovl_remove_upper()
820 err = PTR_ERR(opaquedir); in ovl_remove_upper()
821 if (IS_ERR(opaquedir)) in ovl_remove_upper()
833 if ((opaquedir && upper != opaquedir) || in ovl_remove_upper()
834 (!opaquedir && !ovl_matches_upper(dentry, upper))) in ovl_remove_upper()
855 dput(opaquedir); in ovl_remove_upper()
1097 struct dentry *opaquedir = NULL; in ovl_rename() local
1165 opaquedir = ovl_clear_empty(new, &list); in ovl_rename()
1166 err = PTR_ERR(opaquedir); in ovl_rename()
1167 if (IS_ERR(opaquedir)) { in ovl_rename()
1168 opaquedir = NULL; in ovl_rename()
1222 if (opaquedir) { in ovl_rename()
1223 if (newdentry != opaquedir) in ovl_rename()
1301 dput(opaquedir); in ovl_rename()