Re: [PATCH v5 8/9] iov_iter, block: Make bio structs pin pages rather than ref'ing if appropriate

From: Christoph Hellwig
Date: Thu Jan 12 2023 - 10:13:17 EST


On Thu, Jan 12, 2023 at 02:58:49PM +0000, David Howells wrote:
> That's kind of what I'm doing - though I've left out the else just in case the
> VM decides to indicate back both FOLL_GET and FOLL_PIN. I'm not sure why it
> would but...

It really can't - they are exclusive. Maybe we need an assert for that
somewhere, but we surely shouldn't try to deal with it.