Lines Matching defs:new_count
4288 __u32 new_count[2];
4291 if (copy_from_user(new_count, arg, sizeof(new_count)))
4293 for (i = 0; i < ARRAY_SIZE(new_count); i++)
4294 if (new_count[i] > INT_MAX)
4316 BUILD_BUG_ON(sizeof(new_count) != sizeof(ctx->iowq_limits));
4318 for (i = 0; i < ARRAY_SIZE(new_count); i++)
4319 if (new_count[i])
4320 ctx->iowq_limits[i] = new_count[i];
4324 ret = io_wq_max_workers(tctx->io_wq, new_count);
4328 memset(new_count, 0, sizeof(new_count));
4336 if (copy_to_user(arg, new_count, sizeof(new_count)))
4350 for (i = 0; i < ARRAY_SIZE(new_count); i++)
4351 new_count[i] = ctx->iowq_limits[i];
4353 (void)io_wq_max_workers(tctx->io_wq, new_count);