Lines Matching defs:convert
44 s->convert = NULL;
269 struct sidtab_convert_params *convert;
295 convert = s->convert;
316 * if we are building a new sidtab, we need to convert the context
319 if (convert) {
321 dst_convert = sidtab_do_lookup(convert->target, count, 1);
327 rc = convert->func(context, &dst_convert->context,
328 convert->args, GFP_ATOMIC);
335 convert->target->count = count + 1;
337 hash_add_rcu(convert->target->context_to_sid,
374 struct sidtab_convert_params *convert)
391 convert);
405 rc = convert->func(&esrc->ptr_leaf->entries[i].context,
407 convert->args, GFP_KERNEL);
427 if (s->convert) {
436 * live convert)
447 /* enable live convert of new entries */
448 s->convert = params;
450 /* we can safely convert the tree outside the lock */
455 /* convert all entries not covered by live convert */
460 /* we need to keep the old table - disable live convert */
462 s->convert = NULL;
481 /* cancelling policy load - disable live convert of sidtab */
483 s->convert = NULL;
491 s->convert = NULL;