Lines Matching defs:new_count
314 __u32 new_count[2];
317 if (copy_from_user(new_count, arg, sizeof(new_count)))
319 for (i = 0; i < ARRAY_SIZE(new_count); i++)
320 if (new_count[i] > INT_MAX)
342 BUILD_BUG_ON(sizeof(new_count) != sizeof(ctx->iowq_limits));
344 for (i = 0; i < ARRAY_SIZE(new_count); i++)
345 if (new_count[i])
346 ctx->iowq_limits[i] = new_count[i];
350 ret = io_wq_max_workers(tctx->io_wq, new_count);
354 memset(new_count, 0, sizeof(new_count));
362 if (copy_to_user(arg, new_count, sizeof(new_count)))
376 for (i = 0; i < ARRAY_SIZE(new_count); i++)
377 new_count[i] = ctx->iowq_limits[i];
379 (void)io_wq_max_workers(tctx->io_wq, new_count);