Lines Matching refs:new_count
259 __u32 new_count[2]; in io_register_iowq_max_workers() local
262 if (copy_from_user(new_count, arg, sizeof(new_count))) in io_register_iowq_max_workers()
264 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
265 if (new_count[i] > INT_MAX) in io_register_iowq_max_workers()
287 BUILD_BUG_ON(sizeof(new_count) != sizeof(ctx->iowq_limits)); in io_register_iowq_max_workers()
289 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
290 if (new_count[i]) in io_register_iowq_max_workers()
291 ctx->iowq_limits[i] = new_count[i]; in io_register_iowq_max_workers()
295 ret = io_wq_max_workers(tctx->io_wq, new_count); in io_register_iowq_max_workers()
299 memset(new_count, 0, sizeof(new_count)); in io_register_iowq_max_workers()
309 if (copy_to_user(arg, new_count, sizeof(new_count))) in io_register_iowq_max_workers()
322 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
323 new_count[i] = ctx->iowq_limits[i]; in io_register_iowq_max_workers()
325 (void)io_wq_max_workers(tctx->io_wq, new_count); in io_register_iowq_max_workers()