Lines Matching refs:workdir
393 ofs->config.workdir, name, -err); in ovl_workdir_create()
455 static bool ovl_workdir_ok(struct dentry *workdir, struct dentry *upperdir) in ovl_workdir_ok() argument
459 if (workdir != upperdir) { in ovl_workdir_ok()
460 struct dentry *trap = lock_rename(workdir, upperdir); in ovl_workdir_ok()
462 unlock_rename(workdir, upperdir); in ovl_workdir_ok()
572 struct dentry *workdir = ofs->workdir; in ovl_check_rename_whiteout() local
580 temp = ovl_create_temp(ofs, workdir, OVL_CATTR(S_IFREG | 0)); in ovl_check_rename_whiteout()
586 rd.old_parent = workdir; in ovl_check_rename_whiteout()
587 rd.new_parent = workdir; in ovl_check_rename_whiteout()
607 workdir, name.name.len); in ovl_check_rename_whiteout()
616 ovl_cleanup(ofs, workdir, whiteout); in ovl_check_rename_whiteout()
620 ovl_cleanup(ofs, workdir, temp); in ovl_check_rename_whiteout()
671 struct dentry *workdir; in ovl_make_workdir() local
682 workdir = ovl_workdir_create(ofs, OVL_WORKDIR_NAME, false); in ovl_make_workdir()
683 err = PTR_ERR(workdir); in ovl_make_workdir()
684 if (IS_ERR_OR_NULL(workdir)) in ovl_make_workdir()
687 ofs->workdir = workdir; in ovl_make_workdir()
689 err = ovl_setup_trap(sb, ofs->workdir, &ofs->workdir_trap, "workdir"); in ovl_make_workdir()
708 tmpfile = ovl_do_tmpfile(ofs, ofs->workdir, S_IFREG | 0); in ovl_make_workdir()
728 err = ovl_setxattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE, "0", 1); in ovl_make_workdir()
760 ovl_removexattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE); in ovl_make_workdir()
768 if (ovl_dentry_remote(ofs->workdir) && in ovl_make_workdir()
788 fh_type = ovl_can_decode_fh(ofs->workdir->d_sb); in ovl_make_workdir()
870 dput(ofs->workdir); in ovl_get_indexdir()
871 ofs->workdir = NULL; in ovl_get_indexdir()
876 ofs->workdir = indexdir; in ovl_get_indexdir()
1434 if (!ofs->config.workdir) { in ovl_fill_super_creds()
1457 if (!ofs->workdir) in ovl_fill_super_creds()
1483 if (!ofs->workdir) in ovl_fill_super_creds()
1492 if (!ofs->workdir) { in ovl_fill_super_creds()