Lines Matching refs:mountdata
143 char *mountdata = NULL; in cifs_compose_mount_options() local
178 mountdata = kzalloc(md_len + 1, GFP_KERNEL); in cifs_compose_mount_options()
179 if (mountdata == NULL) { in cifs_compose_mount_options()
188 strncpy(mountdata, sb_mountdata, 5); in cifs_compose_mount_options()
211 strncat(mountdata, sb_mountdata + off, noff); in cifs_compose_mount_options()
214 strcat(mountdata, sb_mountdata + off); in cifs_compose_mount_options()
215 mountdata[md_len] = '\0'; in cifs_compose_mount_options()
218 if (mountdata[strlen(mountdata) - 1] != sep) in cifs_compose_mount_options()
219 strncat(mountdata, &sep, 1); in cifs_compose_mount_options()
220 strcat(mountdata, "ip="); in cifs_compose_mount_options()
221 strcat(mountdata, srvIP); in cifs_compose_mount_options()
228 return mountdata; in cifs_compose_mount_options()
231 kfree(mountdata); in cifs_compose_mount_options()
232 mountdata = ERR_PTR(rc); in cifs_compose_mount_options()
248 char *mountdata; in cifs_dfs_do_refmount() local
252 mountdata = cifs_compose_mount_options(cifs_sb->mountdata, in cifs_dfs_do_refmount()
255 if (IS_ERR(mountdata)) in cifs_dfs_do_refmount()
256 return (struct vfsmount *)mountdata; in cifs_dfs_do_refmount()
258 mnt = vfs_kern_mount(&cifs_fs_type, 0, devname, mountdata); in cifs_dfs_do_refmount()
259 kfree(mountdata); in cifs_dfs_do_refmount()