Lines Matching refs:dfsplen
42 int dfsplen; in cifs_build_path_to_root() local
52 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in cifs_build_path_to_root()
54 dfsplen = 0; in cifs_build_path_to_root()
56 full_path = kmalloc(dfsplen + pplen + 1, GFP_KERNEL); in cifs_build_path_to_root()
60 if (dfsplen) in cifs_build_path_to_root()
61 memcpy(full_path, tcon->treeName, dfsplen); in cifs_build_path_to_root()
62 full_path[dfsplen] = CIFS_DIR_SEP(cifs_sb); in cifs_build_path_to_root()
63 memcpy(full_path + dfsplen + 1, ctx->prepath, pplen); in cifs_build_path_to_root()
84 int dfsplen; in build_path_from_dentry_optional_prefix() local
95 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 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, tcon->treeName, dfsplen); in build_path_from_dentry_optional_prefix()
128 for (i = 0; i < dfsplen; i++) { in build_path_from_dentry_optional_prefix()