[PATCH 03/16] mm: simplify gup_fast_permitted

Christoph Hellwig hch at lst.de
Tue Jun 4 17:26:10 AEST 2019


On Mon, Jun 03, 2019 at 10:02:10AM -0700, Linus Torvalds wrote:
> On Mon, Jun 3, 2019 at 9:08 AM Linus Torvalds
> <torvalds at linux-foundation.org> wrote:
> >
> > The new code has no test at all for "nr_pages == 0", afaik.
> 
> Note that it really is important to check for that, because right now we do

True.  The 0 check got lost.  I'll make sure we do the right thing for
the next version.


More information about the Linuxppc-dev mailing list