Lines Matching refs:prepath
347 new_ctx->prepath = NULL; in smb3_fs_context_dup()
361 DUP_CTX_STR(prepath); in smb3_fs_context_dup()
490 char *cifs_sanitize_prepath(char *prepath, gfp_t gfp) in cifs_sanitize_prepath() argument
492 char *cursor1 = prepath, *cursor2 = prepath; in cifs_sanitize_prepath()
515 if (!*prepath) in cifs_sanitize_prepath()
517 s = kstrdup(prepath, gfp); in cifs_sanitize_prepath()
534 plen = ctx->prepath ? strlen(ctx->prepath) + 1 : 0; in smb3_fs_context_fullpath()
542 memcpy(s + ulen + 1, ctx->prepath, plen); in smb3_fs_context_fullpath()
604 kfree(ctx->prepath); in smb3_parse_devname()
605 ctx->prepath = NULL; in smb3_parse_devname()
611 ctx->prepath = cifs_sanitize_prepath(pos, GFP_KERNEL); in smb3_parse_devname()
612 if (IS_ERR(ctx->prepath)) { in smb3_parse_devname()
613 rc = PTR_ERR(ctx->prepath); in smb3_parse_devname()
614 ctx->prepath = NULL; in smb3_parse_devname()
1756 kfree(ctx->prepath); in smb3_cleanup_fs_context_contents()
1757 ctx->prepath = NULL; in smb3_cleanup_fs_context_contents()