From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Date: Tue, 04 Jun 2019 07:26:10 +0000 Subject: Re: [PATCH 03/16] mm: simplify gup_fast_permitted Message-Id: <20190604072610.GE15680@lst.de> List-Id: References: <20190601074959.14036-1-hch@lst.de> <20190601074959.14036-4-hch@lst.de> <20190603074121.GA22920@lst.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linus Torvalds Cc: Christoph Hellwig , Paul Burton , James Hogan , Yoshinori Sato , Rich Felker , "David S. Miller" , Nicholas Piggin , Khalid Aziz , Andrey Konovalov , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-mips@vger.kernel.org, Linux-sh list , sparclinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Linux-MM , the arch/x86 maintainers , Linux List Kernel Mailing On Mon, Jun 03, 2019 at 10:02:10AM -0700, Linus Torvalds wrote: > On Mon, Jun 3, 2019 at 9:08 AM Linus Torvalds > 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.