• Home
  • Raw
  • Download

Lines Matching refs:ctx

487 	struct legacy_fs_context *ctx = fc->fs_private;  in legacy_fs_context_free()  local
489 if (ctx) { in legacy_fs_context_free()
490 if (ctx->param_type == LEGACY_FS_INDIVIDUAL_PARAMS) in legacy_fs_context_free()
491 kfree(ctx->legacy_data); in legacy_fs_context_free()
492 kfree(ctx); in legacy_fs_context_free()
501 struct legacy_fs_context *ctx; in legacy_fs_context_dup() local
504 ctx = kmemdup(src_ctx, sizeof(*src_ctx), GFP_KERNEL); in legacy_fs_context_dup()
505 if (!ctx) in legacy_fs_context_dup()
508 if (ctx->param_type == LEGACY_FS_INDIVIDUAL_PARAMS) { in legacy_fs_context_dup()
509 ctx->legacy_data = kmemdup(src_ctx->legacy_data, in legacy_fs_context_dup()
511 if (!ctx->legacy_data) { in legacy_fs_context_dup()
512 kfree(ctx); in legacy_fs_context_dup()
517 fc->fs_private = ctx; in legacy_fs_context_dup()
527 struct legacy_fs_context *ctx = fc->fs_private; in legacy_parse_param() local
528 unsigned int size = ctx->data_size; in legacy_parse_param()
536 if (ctx->param_type == LEGACY_FS_MONOLITHIC_PARAMS) in legacy_parse_param()
558 if (!ctx->legacy_data) { in legacy_parse_param()
559 ctx->legacy_data = kmalloc(PAGE_SIZE, GFP_KERNEL); in legacy_parse_param()
560 if (!ctx->legacy_data) in legacy_parse_param()
565 ctx->legacy_data[size++] = ','; in legacy_parse_param()
567 memcpy(ctx->legacy_data + size, param->key, len); in legacy_parse_param()
570 ctx->legacy_data[size++] = '='; in legacy_parse_param()
571 memcpy(ctx->legacy_data + size, param->string, param->size); in legacy_parse_param()
574 ctx->legacy_data[size] = '\0'; in legacy_parse_param()
575 ctx->data_size = size; in legacy_parse_param()
576 ctx->param_type = LEGACY_FS_INDIVIDUAL_PARAMS; in legacy_parse_param()
585 struct legacy_fs_context *ctx = fc->fs_private; in legacy_parse_monolithic() local
587 if (ctx->param_type != LEGACY_FS_UNSET_PARAMS) { in legacy_parse_monolithic()
592 ctx->legacy_data = data; in legacy_parse_monolithic()
593 ctx->param_type = LEGACY_FS_MONOLITHIC_PARAMS; in legacy_parse_monolithic()
594 if (!ctx->legacy_data) in legacy_parse_monolithic()
599 return security_sb_eat_lsm_opts(ctx->legacy_data, &fc->security); in legacy_parse_monolithic()
607 struct legacy_fs_context *ctx = fc->fs_private; in legacy_get_tree() local
612 fc->source, ctx->legacy_data); in legacy_get_tree()
628 struct legacy_fs_context *ctx = fc->fs_private; in legacy_reconfigure() local
635 ctx ? ctx->legacy_data : NULL); in legacy_reconfigure()