Lines Matching defs:relative_path
364 const char *relative_path)
368 if (!rootdir || !relative_path)
370 if (strlen(rootdir) + strlen(relative_path) >= PATH_MAX)
378 strcat(buf, relative_path);
969 char *relative_path = NULL;
976 relative_path = hmdfs_get_dentry_relative_path(parent_dentry);
977 if (!relative_path)
980 cfn = find_cfn(sbi, HMDFS_SERVER_CID, relative_path, true);
1005 kfree(relative_path);
1179 const char *relative_path, bool server)
1197 hash = path_hash(relative_path, strlen(relative_path),
1209 kfree(cfn->relative_path);
1228 return (path_cmp(cfn->relative_path, path, cfn->sbi->s_case_sensitive) &&
1257 cfn->relative_path = kstrdup(path, GFP_KERNEL);
1258 if (!cfn->relative_path)
1340 * @relative_path: the relative path which the tmpfile belongs
1350 const char *relative_path, bool server)
1363 cfn = find_cfn(con->sbi, cid, relative_path, server);
1372 err = cache_file_name_generate(fullname, con, relative_path, server);
1377 DENTRY_FILE_XATTR_NAME, relative_path,
1378 strlen(relative_path), 0);
1399 newf = insert_cfn(con->sbi, fullname, relative_path, cid, server);
1415 char *relative_path = NULL;
1427 relative_path = hmdfs_get_dentry_relative_path(dentry);
1428 if (unlikely(!relative_path)) {
1458 hash = path_hash(relative_path, strlen(relative_path),
1482 if (!path_cmp(relative_path, kvalue, sbi->s_case_sensitive)) {
1495 kfree(relative_path);
1960 if (strcmp(path, cfn->relative_path) != 0)
1980 const char *relative_path)
1984 cfn = find_cfn(con->sbi, con->cid, relative_path, false);
1994 char *relative_path = NULL;
1996 relative_path = hmdfs_get_dentry_relative_path(dentry);
1997 if (unlikely(!relative_path)) {
2001 cache_file_find_and_delete(con, relative_path);
2002 kfree(relative_path);
2006 const char *relative_path,
2010 int len = strlen(relative_path);
2018 err = hmdfs_client_start_readdir(con, filp, relative_path, len, header);
2045 struct file *file, const char *relative_path)
2051 newf = cache_file_persistent(con, file, relative_path, false);
2053 cache_file_find_and_delete(con, relative_path);
2060 const char *relative_path)
2068 return hmdfs_get_new_dentry_file(con, relative_path, p);
2073 const char *relative_path)
2078 file = read_header_and_revalidate(con, cfn->filp, relative_path);
2097 err = hmdfs_add_file_to_cache(dentry, con, file, relative_path);
2106 const char *relative_path)
2111 file = read_header_and_revalidate(con, item->filp, relative_path);
2129 cache_file_find_and_delete(con, relative_path);
2131 err = hmdfs_add_file_to_cache(dentry, con, file, relative_path);
2143 char *relative_path = NULL;
2152 relative_path = hmdfs_get_dentry_relative_path(dentry);
2153 if (unlikely(!relative_path)) {
2164 remote_file_revalidate_item(dentry, con, item, relative_path);
2169 cfn = find_cfn(sbi, con->cid, relative_path, false);
2171 remote_file_revalidate_cfn(dentry, con, cfn, relative_path);
2176 filp = hmdfs_get_new_dentry_file(con, relative_path, NULL);
2182 err = hmdfs_add_file_to_cache(dentry, con, filp, relative_path);
2193 kfree(relative_path);
2384 char *relative_path = NULL;
2409 relative_path = hmdfs_get_dentry_relative_path(dentry);
2410 if (!relative_path) {
2422 hmdfs_send_drop_push(item->con, relative_path);
2429 kfree(relative_path);