Thread (7 messages) flat view 7 messages, 3 authors, 2021-01-19

Re: [PATCH] block: Add bio_limit

From: Christoph Hellwig <hch@lst.de>
Date: 2021-01-18 18:14:35
Also in: linux-fsdevel

On Thu, Jan 14, 2021 at 07:47:06PM +0000, Matthew Wilcox (Oracle) wrote:
It's often inconvenient to use BIO_MAX_PAGES due to min() requiring the
sign to be the same.  Introduce bio_limit() and change BIO_MAX_PAGES to
be unsigned to make it easier for the users.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
I like the helper, but I'm not too happy with the naming.  Why not
something like bio_guess_nr_segs() or similar?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help