Lines Matching refs:dfsplen
44 int dfsplen; in cifs_build_path_to_root() local
54 dfsplen = strnlen(tcon->tree_name, MAX_TREE_SIZE + 1); in cifs_build_path_to_root()
56 dfsplen = 0; in cifs_build_path_to_root()
58 full_path = kmalloc(dfsplen + pplen + 1, GFP_KERNEL); in cifs_build_path_to_root()
62 if (dfsplen) in cifs_build_path_to_root()
63 memcpy(full_path, tcon->tree_name, dfsplen); in cifs_build_path_to_root()
64 full_path[dfsplen] = CIFS_DIR_SEP(cifs_sb); in cifs_build_path_to_root()
65 memcpy(full_path + dfsplen + 1, ctx->prepath, pplen); in cifs_build_path_to_root()
86 int dfsplen; in __build_path_from_dentry_optional_prefix() local
96 dfsplen = strnlen(tree, tree_len + 1); in __build_path_from_dentry_optional_prefix()
98 dfsplen = 0; in __build_path_from_dentry_optional_prefix()
108 if (s < (char *)page + pplen + dfsplen) in __build_path_from_dentry_optional_prefix()
124 if (dfsplen) { in __build_path_from_dentry_optional_prefix()
125 s -= dfsplen; in __build_path_from_dentry_optional_prefix()
126 memcpy(s, tree, dfsplen); in __build_path_from_dentry_optional_prefix()
129 for (i = 0; i < dfsplen; i++) { in __build_path_from_dentry_optional_prefix()