Lines Matching defs:relative_path

365 				     const char *relative_path)
369 if (!rootdir || !relative_path)
371 if (strlen(rootdir) + strlen(relative_path) >= PATH_MAX)
379 strcat(buf, relative_path);
970 char *relative_path = NULL;
977 relative_path = hmdfs_get_dentry_relative_path(parent_dentry);
978 if (!relative_path)
981 cfn = find_cfn(sbi, HMDFS_SERVER_CID, relative_path, true);
1006 kfree(relative_path);
1180 const char *relative_path, bool server)
1198 hash = path_hash(relative_path, strlen(relative_path),
1210 kfree(cfn->relative_path);
1229 return (path_cmp(cfn->relative_path, path, cfn->sbi->s_case_sensitive) &&
1258 cfn->relative_path = kstrdup(path, GFP_KERNEL);
1259 if (!cfn->relative_path)
1341 * @relative_path: the relative path which the tmpfile belongs
1351 const char *relative_path, bool server)
1364 cfn = find_cfn(con->sbi, cid, relative_path, server);
1373 err = cache_file_name_generate(fullname, con, relative_path, server);
1378 DENTRY_FILE_XATTR_NAME, relative_path,
1379 strlen(relative_path), 0);
1400 newf = insert_cfn(con->sbi, fullname, relative_path, cid, server);
1416 char *relative_path = NULL;
1428 relative_path = hmdfs_get_dentry_relative_path(dentry);
1429 if (unlikely(!relative_path)) {
1459 hash = path_hash(relative_path, strlen(relative_path),
1483 if (!path_cmp(relative_path, kvalue, sbi->s_case_sensitive)) {
1496 kfree(relative_path);
1961 if (strcmp(path, cfn->relative_path) != 0)
1981 const char *relative_path)
1985 cfn = find_cfn(con->sbi, con->cid, relative_path, false);
1995 char *relative_path = NULL;
1997 relative_path = hmdfs_get_dentry_relative_path(dentry);
1998 if (unlikely(!relative_path)) {
2002 cache_file_find_and_delete(con, relative_path);
2003 kfree(relative_path);
2007 const char *relative_path,
2011 int len = strlen(relative_path);
2019 err = hmdfs_client_start_readdir(con, filp, relative_path, len, header);
2046 struct file *file, const char *relative_path)
2052 newf = cache_file_persistent(con, file, relative_path, false);
2054 cache_file_find_and_delete(con, relative_path);
2061 const char *relative_path)
2069 return hmdfs_get_new_dentry_file(con, relative_path, p);
2074 const char *relative_path)
2079 file = read_header_and_revalidate(con, cfn->filp, relative_path);
2098 err = hmdfs_add_file_to_cache(dentry, con, file, relative_path);
2107 const char *relative_path)
2112 file = read_header_and_revalidate(con, item->filp, relative_path);
2130 cache_file_find_and_delete(con, relative_path);
2132 err = hmdfs_add_file_to_cache(dentry, con, file, relative_path);
2144 char *relative_path = NULL;
2153 relative_path = hmdfs_get_dentry_relative_path(dentry);
2154 if (unlikely(!relative_path)) {
2165 remote_file_revalidate_item(dentry, con, item, relative_path);
2170 cfn = find_cfn(sbi, con->cid, relative_path, false);
2172 remote_file_revalidate_cfn(dentry, con, cfn, relative_path);
2177 filp = hmdfs_get_new_dentry_file(con, relative_path, NULL);
2183 err = hmdfs_add_file_to_cache(dentry, con, filp, relative_path);
2194 kfree(relative_path);
2385 char *relative_path = NULL;
2410 relative_path = hmdfs_get_dentry_relative_path(dentry);
2411 if (!relative_path) {
2423 hmdfs_send_drop_push(item->con, relative_path);
2430 kfree(relative_path);