Lines Matching defs:npath

82 static int get_normalized_path(const char *path, char **npath)
88 *npath = (char *)path;
90 *npath = kstrndup(path, strlen(path), GFP_KERNEL);
91 if (!*npath)
93 convert_delimiter(*npath, '\\');
98 static inline void free_normalized_path(const char *path, char *npath)
100 if (path != npath)
101 kfree(npath);
529 char *npath;
533 npath = kstrndup(path, strlen(path), GFP_KERNEL);
534 if (!npath)
537 s = npath;
538 sep = *npath;
553 h = cache_entry_hash(npath, strlen(npath));
554 e = npath + strlen(npath) - 1;
567 ce = __lookup_cache_entry(npath);
569 h = cache_entry_hash(npath, strlen(npath));
581 kfree(npath);
883 char *npath;
886 rc = get_normalized_path(path, &npath);
890 rc = __dfs_cache_find(xid, ses, nls_codepage, remap, npath, false);
896 ce = lookup_cache_entry(npath, NULL);
913 free_normalized_path(path, npath);
937 char *npath;
940 rc = get_normalized_path(path, &npath);
944 cifs_dbg(FYI, "%s: path: %s\n", __func__, npath);
948 ce = lookup_cache_entry(npath, NULL);
963 free_normalized_path(path, npath);
992 char *npath;
996 rc = get_normalized_path(path, &npath);
1000 cifs_dbg(FYI, "%s: update target hint - path: %s\n", __func__, npath);
1002 rc = __dfs_cache_find(xid, ses, nls_codepage, remap, npath, false);
1008 ce = lookup_cache_entry(npath, NULL);
1031 free_normalized_path(path, npath);
1054 char *npath;
1061 rc = get_normalized_path(path, &npath);
1065 cifs_dbg(FYI, "%s: path: %s\n", __func__, npath);
1069 ce = lookup_cache_entry(npath, NULL);
1092 free_normalized_path(path, npath);
1112 char *npath;
1118 rc = get_normalized_path(path, &npath);
1122 cifs_dbg(FYI, "%s: path: %s\n", __func__, npath);
1126 ce = lookup_cache_entry(npath, NULL);
1138 free_normalized_path(path, npath);
1427 char *s, *npath;
1437 npath = kstrndup(path, s - path, GFP_KERNEL);
1438 if (!npath)
1441 return npath;
1543 char *path, *npath;
1553 rc = get_normalized_path(path, &npath);
1559 ce = lookup_cache_entry(npath, NULL);
1574 if (is_dfs_link(npath)) {
1575 ses = root_ses = find_root_ses(vi, tcon, npath);
1585 rc = get_dfs_referral(xid, ses, cache_nlsc, tcon->remap, npath, &refs,
1589 rc = update_cache_entry(npath, refs, numrefs);
1597 free_normalized_path(path, npath);