Lines Matching refs:new_count
3786 __u32 new_count[2]; in io_register_iowq_max_workers() local
3789 if (copy_from_user(new_count, arg, sizeof(new_count))) in io_register_iowq_max_workers()
3791 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
3792 if (new_count[i] > INT_MAX) in io_register_iowq_max_workers()
3814 BUILD_BUG_ON(sizeof(new_count) != sizeof(ctx->iowq_limits)); in io_register_iowq_max_workers()
3816 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
3817 if (new_count[i]) in io_register_iowq_max_workers()
3818 ctx->iowq_limits[i] = new_count[i]; in io_register_iowq_max_workers()
3822 ret = io_wq_max_workers(tctx->io_wq, new_count); in io_register_iowq_max_workers()
3826 memset(new_count, 0, sizeof(new_count)); in io_register_iowq_max_workers()
3834 if (copy_to_user(arg, new_count, sizeof(new_count))) in io_register_iowq_max_workers()
3848 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
3849 new_count[i] = ctx->iowq_limits[i]; in io_register_iowq_max_workers()
3851 (void)io_wq_max_workers(tctx->io_wq, new_count); in io_register_iowq_max_workers()