[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220314164510.acf6157930122583808375e1@linux-foundation.org>
Date: Mon, 14 Mar 2022 16:45:10 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Miaohe Lin <linmiaohe@...wei.com>
Cc: HORIGUCHI NAOYA (堀口 直也)
<naoya.horiguchi@....com>,
"tony.luck@...el.com" <tony.luck@...el.com>,
"bp@...en8.de" <bp@...en8.de>,
"mike.kravetz@...cle.com" <mike.kravetz@...cle.com>,
"shy828301@...il.com" <shy828301@...il.com>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-edac@...r.kernel.org" <linux-edac@...r.kernel.org>
Subject: Re: [PATCH v2 2/3] mm/memory-failure.c: avoid calling
invalidate_inode_page() with unexpected pages
On Mon, 14 Mar 2022 10:59:40 +0800 Miaohe Lin <linmiaohe@...wei.com> wrote:
> On 2022/3/14 10:50, HORIGUCHI NAOYA(堀口 直也) wrote:
> > On Mon, Mar 14, 2022 at 09:58:49AM +0800, Miaohe Lin wrote:
> >> On 2022/3/14 7:41, HORIGUCHI NAOYA(堀口 直也) wrote:
> >>> On Sat, Mar 12, 2022 at 03:46:12PM +0800, Miaohe Lin wrote:
> >>>> Since commit 042c4f32323b ("mm/truncate: Inline invalidate_complete_page()
> >>>
> >>> This commit ID does not exist in mainline (or in the latest mmotm?),
> >>> so you can't use it in patch description. Could you update this part?
> >>>
> >>
> >> This commit is in the mmotm but not in mainline yet:
> >>
> >> commit 042c4f32323beb28146c658202d3e69899e4f245
> >> Author: Matthew Wilcox (Oracle) <willy@...radead.org>
> >> Date: Sat Feb 12 15:27:42 2022 -0500
> >>
> >> mm/truncate: Inline invalidate_complete_page() into its one caller
> >>
> >> invalidate_inode_page() is the only caller of invalidate_complete_page()
> >> and inlining it reveals that the first check is unnecessary (because we
> >> hold the page locked, and we just retrieved the mapping from the page).
> >> Actually, it does make a difference, in that tail pages no longer fail
> >> at this check, so it's now possible to remove a tail page from a mapping.
> >>
> >> Signed-off-by: Matthew Wilcox (Oracle) <willy@...radead.org>
> >> Reviewed-by: John Hubbard <jhubbard@...dia.com>
> >> Reviewed-by: Christoph Hellwig <hch@....de>
> >>
> >> Am I "not" supposed to use this commit id as it's not "stable" now?
> >
> > No, it's not stable yet. In whatever way you get the above commit (I guess
> > you get it from https://github.com/hnaz/linux-mm), all acked mm-related
> > patches are sent to Linus by Andrew *by email*, so the eventual commit IDs
> > should be determined when they are applied to mainline.
> >
>
> Many thanks for your explanation. (I get this commit id from linux-next tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git)
> So I should remember always to get the commit id from mainline.
It's likely that this commit ID will be the same once Matthew's patch
goes into mainline.
But this is why we include the patch title ("mm/truncate: Inline ...")
when identifying commits. Sometimes stuff happens...
Powered by blists - more mailing lists