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()
86 int dfsplen; in build_path_from_dentry() local
96 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in build_path_from_dentry()
98 dfsplen = 0; in build_path_from_dentry()
104 namelen = dfsplen + pplen; in build_path_from_dentry()
145 if (namelen != dfsplen + pplen || read_seqretry(&rename_lock, seq)) { in build_path_from_dentry()
147 namelen, dfsplen); in build_path_from_dentry()
165 memcpy(full_path+dfsplen+1, cifs_sb->prepath, pplen-1); in build_path_from_dentry()
166 full_path[dfsplen] = dirsep; in build_path_from_dentry()
168 if (full_path[dfsplen+1+i] == '/') in build_path_from_dentry()
169 full_path[dfsplen+1+i] = CIFS_DIR_SEP(cifs_sb); in build_path_from_dentry()
172 if (dfsplen) { in build_path_from_dentry()
173 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry()
176 for (i = 0; i < dfsplen; i++) { in build_path_from_dentry()