Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754706AbaDPIof (ORCPT ); Wed, 16 Apr 2014 04:44:35 -0400 Received: from mta-out.inet.fi ([195.156.147.13]:56304 "EHLO jenni1.inet.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751441AbaDPIoc (ORCPT ); Wed, 16 Apr 2014 04:44:32 -0400 Date: Wed, 16 Apr 2014 11:42:36 +0300 From: "Kirill A. Shutemov" 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 Subject: Re: [PATCH] thp: close race between split and zap huge pages 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/