From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kirill A. Shutemov" Subject: Re: [PATCH] thp: close race between split and zap huge pages Date: Wed, 16 Apr 2014 11:42:36 +0300 Message-ID: <20140416084236.GA23247@node.dhcp.inet.fi> References: <1397598536-25074-1-git-send-email-kirill.shutemov@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Bob Liu Cc: "Kirill A. Shutemov" , Andrea Arcangeli , Andrew Morton , Rik van Riel , Mel Gorman , Michel Lespinasse , Sasha Levin , Dave Jones , Vlastimil Babka , Linux-MM , Linux-Kernel List-Id: linux-mm.kvack.org On Wed, Apr 16, 2014 at 07:52:29AM +0800, Bob Liu wrote: > > *ptl = pmd_lock(mm, pmd); > > - if (pmd_none(*pmd)) > > + if (!pmd_present(*pmd)) > > goto unlock; > > But I didn't get the idea why pmd_none() was removed? !pmd_present(*pmd) is weaker check then pmd_none(*pmd). I mean if pmd_none(*pmd) is true then pmd_present(*pmd) is always false. Correct me if I'm wrong. -- Kirill A. Shutemov