Lines Matching refs:dfsplen
43 int dfsplen; in cifs_build_path_to_root() local
53 dfsplen = strnlen(tcon->tree_name, MAX_TREE_SIZE + 1); in cifs_build_path_to_root()
55 dfsplen = 0; in cifs_build_path_to_root()
57 full_path = kmalloc(dfsplen + pplen + 1, GFP_KERNEL); in cifs_build_path_to_root()
61 if (dfsplen) in cifs_build_path_to_root()
62 memcpy(full_path, tcon->tree_name, dfsplen); in cifs_build_path_to_root()
63 full_path[dfsplen] = CIFS_DIR_SEP(cifs_sb); in cifs_build_path_to_root()
64 memcpy(full_path + dfsplen + 1, ctx->prepath, pplen); in cifs_build_path_to_root()
85 int dfsplen; in __build_path_from_dentry_optional_prefix() local
95 dfsplen = strnlen(tree, tree_len + 1); in __build_path_from_dentry_optional_prefix()
97 dfsplen = 0; in __build_path_from_dentry_optional_prefix()
107 if (s < (char *)page + pplen + dfsplen) in __build_path_from_dentry_optional_prefix()
123 if (dfsplen) { in __build_path_from_dentry_optional_prefix()
124 s -= dfsplen; in __build_path_from_dentry_optional_prefix()
125 memcpy(s, tree, dfsplen); in __build_path_from_dentry_optional_prefix()
128 for (i = 0; i < dfsplen; i++) { in __build_path_from_dentry_optional_prefix()