Lines Matching refs:dfsplen

53 	int dfsplen;  in cifs_build_path_to_root()  local
63 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in cifs_build_path_to_root()
65 dfsplen = 0; in cifs_build_path_to_root()
67 full_path = kmalloc(dfsplen + pplen + 1, GFP_KERNEL); in cifs_build_path_to_root()
71 if (dfsplen) in cifs_build_path_to_root()
72 strncpy(full_path, tcon->treeName, dfsplen); in cifs_build_path_to_root()
73 full_path[dfsplen] = CIFS_DIR_SEP(cifs_sb); in cifs_build_path_to_root()
74 strncpy(full_path + dfsplen + 1, vol->prepath, pplen); in cifs_build_path_to_root()
76 full_path[dfsplen + pplen] = 0; /* add trailing null */ in cifs_build_path_to_root()
97 int dfsplen; in build_path_from_dentry_optional_prefix() local
107 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in build_path_from_dentry_optional_prefix()
109 dfsplen = 0; in build_path_from_dentry_optional_prefix()
115 namelen = dfsplen + pplen; in build_path_from_dentry_optional_prefix()
156 if (namelen != dfsplen + pplen || read_seqretry(&rename_lock, seq)) { in build_path_from_dentry_optional_prefix()
158 namelen, dfsplen); in build_path_from_dentry_optional_prefix()
176 memcpy(full_path+dfsplen+1, cifs_sb->prepath, pplen-1); in build_path_from_dentry_optional_prefix()
177 full_path[dfsplen] = dirsep; in build_path_from_dentry_optional_prefix()
179 if (full_path[dfsplen+1+i] == '/') in build_path_from_dentry_optional_prefix()
180 full_path[dfsplen+1+i] = CIFS_DIR_SEP(cifs_sb); in build_path_from_dentry_optional_prefix()
183 if (dfsplen) { in build_path_from_dentry_optional_prefix()
184 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry_optional_prefix()
187 for (i = 0; i < dfsplen; i++) { in build_path_from_dentry_optional_prefix()