Lines Matching refs:new_count
4343 __u32 new_count[2]; in io_register_iowq_max_workers() local
4346 if (copy_from_user(new_count, arg, sizeof(new_count))) in io_register_iowq_max_workers()
4348 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
4349 if (new_count[i] > INT_MAX) in io_register_iowq_max_workers()
4371 BUILD_BUG_ON(sizeof(new_count) != sizeof(ctx->iowq_limits)); in io_register_iowq_max_workers()
4373 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
4374 if (new_count[i]) in io_register_iowq_max_workers()
4375 ctx->iowq_limits[i] = new_count[i]; in io_register_iowq_max_workers()
4379 ret = io_wq_max_workers(tctx->io_wq, new_count); in io_register_iowq_max_workers()
4383 memset(new_count, 0, sizeof(new_count)); in io_register_iowq_max_workers()
4391 if (copy_to_user(arg, new_count, sizeof(new_count))) in io_register_iowq_max_workers()
4405 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
4406 new_count[i] = ctx->iowq_limits[i]; in io_register_iowq_max_workers()
4408 (void)io_wq_max_workers(tctx->io_wq, new_count); in io_register_iowq_max_workers()