Lines Matching refs:workdir

225 	dput(ofs->workdir);  in ovl_free_fs()
246 kfree(ofs->config.workdir); in ovl_free_fs()
330 return (!ovl_upper_mnt(ofs) || !ofs->workdir); in ovl_force_readonly()
363 seq_show_option(m, "workdir", ofs->config.workdir); in ovl_show_options()
546 kfree(config->workdir); in ovl_parse_opt()
547 config->workdir = match_strdup(&args[0]); in ovl_parse_opt()
548 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()
840 ofs->config.workdir, name, -err); in ovl_workdir_create()
973 static bool ovl_workdir_ok(struct dentry *workdir, struct dentry *upperdir) in ovl_workdir_ok() argument
977 if (workdir != upperdir) { in ovl_workdir_ok()
978 ok = (lock_rename(workdir, upperdir) == NULL); in ovl_workdir_ok()
979 unlock_rename(workdir, upperdir); in ovl_workdir_ok()
1019 struct dentry *workdir = ovl_workdir(dentry); in ovl_posix_acl_xattr_set() local
1031 if (!IS_POSIXACL(d_inode(workdir))) in ovl_posix_acl_xattr_set()
1259 static int ovl_check_rename_whiteout(struct dentry *workdir) in ovl_check_rename_whiteout() argument
1261 struct inode *dir = d_inode(workdir); in ovl_check_rename_whiteout()
1270 temp = ovl_create_temp(workdir, OVL_CATTR(S_IFREG | 0)); in ovl_check_rename_whiteout()
1275 dest = ovl_lookup_temp(workdir); in ovl_check_rename_whiteout()
1291 whiteout = lookup_one_len(name.name.name, workdir, name.name.len); in ovl_check_rename_whiteout()
1358 struct dentry *temp, *workdir; in ovl_make_workdir() local
1368 workdir = ovl_workdir_create(ofs, OVL_WORKDIR_NAME, false); in ovl_make_workdir()
1369 err = PTR_ERR(workdir); in ovl_make_workdir()
1370 if (IS_ERR_OR_NULL(workdir)) in ovl_make_workdir()
1373 ofs->workdir = workdir; in ovl_make_workdir()
1375 err = ovl_setup_trap(sb, ofs->workdir, &ofs->workdir_trap, "workdir"); in ovl_make_workdir()
1394 temp = ovl_do_tmpfile(ofs->workdir, S_IFREG | 0); in ovl_make_workdir()
1403 err = ovl_check_rename_whiteout(ofs->workdir); in ovl_make_workdir()
1414 err = ovl_do_setxattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE, "0", 1); in ovl_make_workdir()
1432 ovl_do_removexattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE); in ovl_make_workdir()
1440 if (ovl_dentry_remote(ofs->workdir) && in ovl_make_workdir()
1460 fh_type = ovl_can_decode_fh(ofs->workdir->d_sb); in ovl_make_workdir()
1486 err = ovl_mount_dir(ofs->config.workdir, &workpath); in ovl_get_workdir()
1545 dput(ofs->workdir); in ovl_get_indexdir()
1546 ofs->workdir = NULL; in ovl_get_indexdir()
1552 ofs->workdir = dget(indexdir); in ovl_get_indexdir()
2052 if (!ofs->config.workdir) { in ovl_fill_super()
2075 if (!ofs->workdir) in ovl_fill_super()