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
95 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in build_path_from_dentry()
97 dfsplen = 0; in build_path_from_dentry()
99 namelen = dfsplen; in build_path_from_dentry()
140 if (namelen != dfsplen || read_seqretry(&rename_lock, seq)) { in build_path_from_dentry()
142 namelen, dfsplen); in build_path_from_dentry()
156 if (dfsplen) { in build_path_from_dentry()
157 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry()
160 for (i = 0; i < dfsplen; i++) { in build_path_from_dentry()