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

Christoph Hellwig
2023-01-12T15:13:17Z

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.