[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181019082801.kbnqxx5ozghy3p3b@master>
Date: Fri, 19 Oct 2018 08:28:01 +0000
From: Wei Yang <richard.weiyang@...il.com>
To: Pavel Tatashin <pasha.tatashin@...il.com>
Cc: penghao122@...a.com.cn,
Linux Memory Management List <linux-mm@...ck.org>,
Andrew Morton <akpm@...ux-foundation.org>,
pasha.tatashin@...cle.com, osalvador@...e.de,
LKML <linux-kernel@...r.kernel.org>, peng.hao2@....com.cn
Subject: Re: [PATCH] mm/sparse: remove a check that compare if unsigned
variable is negative
On Sat, Oct 13, 2018 at 01:04:45PM -0400, Pavel Tatashin wrote:
>This is incorrect: next_present_section_nr() returns "int" and -1 no
>next section, this change would lead to infinite loop.
Yes, the -1 is a very special value.
--
Wei Yang
Help you, Help me
Powered by blists - more mailing lists