Lines Matching refs:workdir

222 	dput(ofs->workdir);  in ovl_free_fs()
243 kfree(ofs->config.workdir); in ovl_free_fs()
318 return (!ovl_upper_mnt(ofs) || !ofs->workdir); in ovl_force_readonly()
351 seq_show_option(m, "workdir", ofs->config.workdir); in ovl_show_options()
524 kfree(config->workdir); in ovl_parse_opt()
525 config->workdir = match_strdup(&args[0]); in ovl_parse_opt()
526 if (!config->workdir) in ovl_parse_opt()
597 if (config->workdir) { in ovl_parse_opt()
599 config->workdir); in ovl_parse_opt()
600 kfree(config->workdir); in ovl_parse_opt()
601 config->workdir = NULL; in ovl_parse_opt()
778 ofs->config.workdir, name, -err); in ovl_workdir_create()
897 static bool ovl_workdir_ok(struct dentry *workdir, struct dentry *upperdir) in ovl_workdir_ok() argument
901 if (workdir != upperdir) { in ovl_workdir_ok()
902 ok = (lock_rename(workdir, upperdir) == NULL); in ovl_workdir_ok()
903 unlock_rename(workdir, upperdir); in ovl_workdir_ok()
942 struct dentry *workdir = ovl_workdir(dentry); in ovl_posix_acl_xattr_set() local
954 if (!IS_POSIXACL(d_inode(workdir))) in ovl_posix_acl_xattr_set()
1167 static int ovl_check_rename_whiteout(struct dentry *workdir) in ovl_check_rename_whiteout() argument
1169 struct inode *dir = d_inode(workdir); in ovl_check_rename_whiteout()
1178 temp = ovl_create_temp(workdir, OVL_CATTR(S_IFREG | 0)); in ovl_check_rename_whiteout()
1183 dest = ovl_lookup_temp(workdir); in ovl_check_rename_whiteout()
1199 whiteout = lookup_one_len(name.name.name, workdir, name.name.len); in ovl_check_rename_whiteout()
1266 struct dentry *temp, *workdir; in ovl_make_workdir() local
1276 workdir = ovl_workdir_create(ofs, OVL_WORKDIR_NAME, false); in ovl_make_workdir()
1277 err = PTR_ERR(workdir); in ovl_make_workdir()
1278 if (IS_ERR_OR_NULL(workdir)) in ovl_make_workdir()
1281 ofs->workdir = workdir; in ovl_make_workdir()
1283 err = ovl_setup_trap(sb, ofs->workdir, &ofs->workdir_trap, "workdir"); in ovl_make_workdir()
1302 temp = ovl_do_tmpfile(ofs->workdir, S_IFREG | 0); in ovl_make_workdir()
1311 err = ovl_check_rename_whiteout(ofs->workdir); in ovl_make_workdir()
1322 err = ovl_do_setxattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE, "0", 1); in ovl_make_workdir()
1330 ovl_do_removexattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE); in ovl_make_workdir()
1338 if (ovl_dentry_remote(ofs->workdir) && in ovl_make_workdir()
1358 fh_type = ovl_can_decode_fh(ofs->workdir->d_sb); in ovl_make_workdir()
1384 err = ovl_mount_dir(ofs->config.workdir, &workpath); in ovl_get_workdir()
1443 dput(ofs->workdir); in ovl_get_indexdir()
1444 ofs->workdir = NULL; in ovl_get_indexdir()
1450 ofs->workdir = dget(indexdir); in ovl_get_indexdir()
1930 if (!ofs->config.workdir) { in ovl_fill_super()
1943 if (!ofs->workdir) in ovl_fill_super()