Lines Matching refs:workdir

231 	dput(ofs->workdir);  in ovl_free_fs()
252 kfree(ofs->config.workdir); in ovl_free_fs()
336 return (!ovl_upper_mnt(ofs) || !ofs->workdir); in ovl_force_readonly()
369 seq_show_option(m, "workdir", ofs->config.workdir); in ovl_show_options()
550 kfree(config->workdir); in ovl_parse_opt()
551 config->workdir = match_strdup(&args[0]); in ovl_parse_opt()
552 if (!config->workdir) in ovl_parse_opt()
631 if (config->workdir) { in ovl_parse_opt()
633 config->workdir); in ovl_parse_opt()
634 kfree(config->workdir); in ovl_parse_opt()
635 config->workdir = NULL; in ovl_parse_opt()
816 ofs->config.workdir, name, -err); in ovl_workdir_create()
935 static bool ovl_workdir_ok(struct dentry *workdir, struct dentry *upperdir) in ovl_workdir_ok() argument
939 if (workdir != upperdir) { in ovl_workdir_ok()
940 ok = (lock_rename(workdir, upperdir) == NULL); in ovl_workdir_ok()
941 unlock_rename(workdir, upperdir); in ovl_workdir_ok()
980 struct dentry *workdir = ovl_workdir(dentry); in ovl_posix_acl_xattr_set() local
992 if (!IS_POSIXACL(d_inode(workdir))) in ovl_posix_acl_xattr_set()
1207 static int ovl_check_rename_whiteout(struct dentry *workdir) in ovl_check_rename_whiteout() argument
1209 struct inode *dir = d_inode(workdir); in ovl_check_rename_whiteout()
1218 temp = ovl_create_temp(workdir, OVL_CATTR(S_IFREG | 0)); in ovl_check_rename_whiteout()
1223 dest = ovl_lookup_temp(workdir); in ovl_check_rename_whiteout()
1239 whiteout = lookup_one_len(name.name.name, workdir, name.name.len); in ovl_check_rename_whiteout()
1306 struct dentry *temp, *workdir; in ovl_make_workdir() local
1316 workdir = ovl_workdir_create(ofs, OVL_WORKDIR_NAME, false); in ovl_make_workdir()
1317 err = PTR_ERR(workdir); in ovl_make_workdir()
1318 if (IS_ERR_OR_NULL(workdir)) in ovl_make_workdir()
1321 ofs->workdir = workdir; in ovl_make_workdir()
1323 err = ovl_setup_trap(sb, ofs->workdir, &ofs->workdir_trap, "workdir"); in ovl_make_workdir()
1342 temp = ovl_do_tmpfile(ofs->workdir, S_IFREG | 0); in ovl_make_workdir()
1351 err = ovl_check_rename_whiteout(ofs->workdir); in ovl_make_workdir()
1362 err = ovl_do_setxattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE, "0", 1); in ovl_make_workdir()
1370 ovl_do_removexattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE); in ovl_make_workdir()
1378 if (ovl_dentry_remote(ofs->workdir) && in ovl_make_workdir()
1398 fh_type = ovl_can_decode_fh(ofs->workdir->d_sb); in ovl_make_workdir()
1424 err = ovl_mount_dir(ofs->config.workdir, &workpath); in ovl_get_workdir()
1483 dput(ofs->workdir); in ovl_get_indexdir()
1484 ofs->workdir = NULL; in ovl_get_indexdir()
1490 ofs->workdir = dget(indexdir); in ovl_get_indexdir()
1974 if (!ofs->config.workdir) { in ovl_fill_super()
1997 if (!ofs->workdir) in ovl_fill_super()