[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y4d801NjwwT0voKA@infradead.org>
Date: Wed, 30 Nov 2022 07:54:59 -0800
From: Christoph Hellwig <hch@...radead.org>
To: Li Nan <linan122@...wei.com>
Cc: tj@...nel.org, josef@...icpanda.com, axboe@...nel.dk,
cgroups@...r.kernel.org, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, yukuai3@...wei.com,
yi.zhang@...wei.com
Subject: Re: [PATCH -next v2 1/9] blk-iocost: cleanup ioc_qos_write() and
ioc_cost_model_write()
> + ret = nbytes;
ret is an int which bytes is a size_t. So we at least need a ssize_t
instead for ret, and even that assumes nbytes never overflows a ssize_t.
Powered by blists - more mailing lists