• Home
  • Raw
  • Download

Lines Matching refs:npath

83 static int get_normalized_path(const char *path, char **npath)  in get_normalized_path()  argument
89 *npath = (char *)path; in get_normalized_path()
91 *npath = kstrndup(path, strlen(path), GFP_KERNEL); in get_normalized_path()
92 if (!*npath) in get_normalized_path()
94 convert_delimiter(*npath, '\\'); in get_normalized_path()
99 static inline void free_normalized_path(const char *path, char *npath) in free_normalized_path() argument
101 if (path != npath) in free_normalized_path()
102 kfree(npath); in free_normalized_path()
841 char *npath; in dfs_cache_find() local
844 rc = get_normalized_path(path, &npath); in dfs_cache_find()
849 ce = do_dfs_cache_find(xid, ses, nls_codepage, remap, npath, false); in dfs_cache_find()
861 free_normalized_path(path, npath); in dfs_cache_find()
885 char *npath; in dfs_cache_noreq_find() local
888 rc = get_normalized_path(path, &npath); in dfs_cache_noreq_find()
893 ce = do_dfs_cache_find(0, NULL, NULL, 0, npath, true); in dfs_cache_noreq_find()
907 free_normalized_path(path, npath); in dfs_cache_noreq_find()
935 char *npath; in dfs_cache_update_tgthint() local
939 rc = get_normalized_path(path, &npath); in dfs_cache_update_tgthint()
943 cifs_dbg(FYI, "%s: path: %s\n", __func__, npath); in dfs_cache_update_tgthint()
946 ce = do_dfs_cache_find(xid, ses, nls_codepage, remap, npath, false); in dfs_cache_update_tgthint()
970 free_normalized_path(path, npath); in dfs_cache_update_tgthint()
992 char *npath; in dfs_cache_noreq_update_tgthint() local
999 rc = get_normalized_path(path, &npath); in dfs_cache_noreq_update_tgthint()
1003 cifs_dbg(FYI, "%s: path: %s\n", __func__, npath); in dfs_cache_noreq_update_tgthint()
1007 ce = do_dfs_cache_find(0, NULL, NULL, 0, npath, true); in dfs_cache_noreq_update_tgthint()
1031 free_normalized_path(path, npath); in dfs_cache_noreq_update_tgthint()
1050 char *npath; in dfs_cache_get_tgt_referral() local
1057 rc = get_normalized_path(path, &npath); in dfs_cache_get_tgt_referral()
1061 cifs_dbg(FYI, "%s: path: %s\n", __func__, npath); in dfs_cache_get_tgt_referral()
1065 ce = lookup_cache_entry(npath, &h); in dfs_cache_get_tgt_referral()
1077 free_normalized_path(path, npath); in dfs_cache_get_tgt_referral()
1298 char *s, *npath; in get_dfs_root() local
1308 npath = kstrndup(path, s - path, GFP_KERNEL); in get_dfs_root()
1309 if (!npath) in get_dfs_root()
1312 return npath; in get_dfs_root()
1402 char *path, *npath; in refresh_tcon() local
1413 rc = get_normalized_path(path, &npath); in refresh_tcon()
1418 ce = lookup_cache_entry(npath, &h); in refresh_tcon()
1430 if (is_dfs_link(npath)) { in refresh_tcon()
1431 ses = root_ses = find_root_ses(vi, tcon, npath); in refresh_tcon()
1449 ce = __update_cache_entry(npath, refs, numrefs); in refresh_tcon()
1463 free_normalized_path(path, npath); in refresh_tcon()