Searched refs:new_count (Results 1 – 3 of 3) sorted by relevance
1361 int io_wq_max_workers(struct io_wq *wq, int *new_count) in io_wq_max_workers() argument1372 if (new_count[i] > task_rlimit(current, RLIMIT_NPROC)) in io_wq_max_workers()1373 new_count[i] = task_rlimit(current, RLIMIT_NPROC); in io_wq_max_workers()1389 if (new_count[i]) in io_wq_max_workers()1390 acct->max_workers = new_count[i]; in io_wq_max_workers()1398 new_count[i] = prev[i]; in io_wq_max_workers()
10966 __u32 new_count[2]; in io_register_iowq_max_workers() local10969 if (copy_from_user(new_count, arg, sizeof(new_count))) in io_register_iowq_max_workers()10971 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()10972 if (new_count[i] > INT_MAX) in io_register_iowq_max_workers()10994 BUILD_BUG_ON(sizeof(new_count) != sizeof(ctx->iowq_limits)); in io_register_iowq_max_workers()10996 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()10997 if (new_count[i]) in io_register_iowq_max_workers()10998 ctx->iowq_limits[i] = new_count[i]; in io_register_iowq_max_workers()11003 ret = io_wq_max_workers(tctx->io_wq, new_count); in io_register_iowq_max_workers()11007 memset(new_count, 0, sizeof(new_count)); in io_register_iowq_max_workers()[all …]
131 int io_wq_max_workers(struct io_wq *wq, int *new_count);