Lines Matching refs:npath

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