From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933458AbdJQLVF (ORCPT ); Tue, 17 Oct 2017 07:21:05 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:53523 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754697AbdJQLVD (ORCPT ); Tue, 17 Oct 2017 07:21:03 -0400 X-Google-Smtp-Source: AOwi7QCkGfLN86WRafyBHY0OGKsNq8o75pOrYWrICj07plBiNSs2EwmoKm7bekoEepOsJBzELBhmNg== Date: Tue, 17 Oct 2017 14:21:00 +0300 From: "Kirill A. Shutemov" To: "Huang, Ying" Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , "Kirill A. Shutemov" , David Rientjes , Arnd Bergmann , Hugh Dickins , =?iso-8859-1?B?Suly9G1l?= Glisse , Daniel Colascione , Zi Yan , Naoya Horiguchi Subject: Re: [PATCH -mm] mm, pagemap: Fix soft dirty marking for PMD migration entry Message-ID: <20171017112100.pciya6pmo62owpht@node.shutemov.name> References: <20171017081818.31795-1-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171017081818.31795-1-ying.huang@intel.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 17, 2017 at 04:18:18PM +0800, Huang, Ying wrote: > From: Huang Ying > > Now, when the page table is walked in the implementation of > /proc//pagemap, pmd_soft_dirty() is used for both the PMD huge > page map and the PMD migration entries. That is wrong, > pmd_swp_soft_dirty() should be used for the PMD migration entries > instead because the different page table entry flag is used. > > Cc: Michal Hocko > Cc: "Kirill A. Shutemov" > Cc: David Rientjes > Cc: Arnd Bergmann > Cc: Hugh Dickins > Cc: "Jérôme Glisse" > Cc: Daniel Colascione > Cc: Zi Yan > Cc: Naoya Horiguchi > Signed-off-by: "Huang, Ying" What is effect of the misbehaviour? pagemap reports garbage? Shoudn't it be in stable@? And maybe add Fixes: . Otherwise, looks good to me. Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov