Lines Matching defs:new_count
264 __u32 new_count[2];
267 if (copy_from_user(new_count, arg, sizeof(new_count)))
269 for (i = 0; i < ARRAY_SIZE(new_count); i++)
270 if (new_count[i] > INT_MAX)
295 BUILD_BUG_ON(sizeof(new_count) != sizeof(ctx->iowq_limits));
297 for (i = 0; i < ARRAY_SIZE(new_count); i++)
298 if (new_count[i])
299 ctx->iowq_limits[i] = new_count[i];
303 ret = io_wq_max_workers(tctx->io_wq, new_count);
307 memset(new_count, 0, sizeof(new_count));
317 if (copy_to_user(arg, new_count, sizeof(new_count)))
330 for (i = 0; i < ARRAY_SIZE(new_count); i++)
331 new_count[i] = ctx->iowq_limits[i];
333 (void)io_wq_max_workers(tctx->io_wq, new_count);