Lines Matching defs:prepath
313 new_ctx->prepath = NULL;
326 DUP_CTX_STR(prepath);
454 char *cifs_sanitize_prepath(char *prepath, gfp_t gfp)
456 char *cursor1 = prepath, *cursor2 = prepath;
479 if (!*prepath)
481 s = kstrdup(prepath, gfp);
488 * Return full path based on the values of @ctx->{UNC,prepath}.
498 plen = ctx->prepath ? strlen(ctx->prepath) + 1 : 0;
506 memcpy(s + ulen + 1, ctx->prepath, plen);
514 * Parse a devname into substrings and populate the ctx->UNC and ctx->prepath
568 kfree(ctx->prepath);
569 ctx->prepath = NULL;
571 /* If pos is NULL then no prepath */
575 ctx->prepath = cifs_sanitize_prepath(pos, GFP_KERNEL);
576 if (IS_ERR(ctx->prepath)) {
577 rc = PTR_ERR(ctx->prepath);
578 ctx->prepath = NULL;
1687 kfree(ctx->prepath);
1688 ctx->prepath = NULL;