Re: [PATCH 03/16] mm: simplify gup_fast_permitted
From: Christoph Hellwig
Date: Tue Jun 04 2019 - 03:30:30 EST
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@xxxxxxxxxxxxxxxxxxxx> 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.