From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751374AbdFYTYh (ORCPT ); Sun, 25 Jun 2017 15:24:37 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:42820 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751136AbdFYTYg (ORCPT ); Sun, 25 Jun 2017 15:24:36 -0400 Date: Sun, 25 Jun 2017 15:24:34 -0400 (EDT) Message-Id: <20170625.152434.163343347007478148.davem@davemloft.net> To: nitin.m.gupta@oracle.com Cc: julian.calaby@gmail.com, lstoakes@gmail.com, jack@suse.cz, mhocko@suse.com, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] sparc64: Fix gup_huge_pmd From: David Miller In-Reply-To: <1498176950-233141-1-git-send-email-nitin.m.gupta@oracle.com> References: <1498176950-233141-1-git-send-email-nitin.m.gupta@oracle.com> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 25 Jun 2017 11:42:50 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nitin Gupta Date: Thu, 22 Jun 2017 17:15:08 -0700 > The function assumes that each PMD points to head of a > huge page. This is not correct as a PMD can point to > start of any 8M region with a, say 256M, hugepage. The > fix ensures that it points to the correct head of any PMD > huge page. > > Cc: Julian Calaby > Signed-off-by: Nitin Gupta > --- > Changes since v1 > - Clarify use of 'head' variable (Julian Calaby) Applied and queued up for -stable, thanks.