linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Joshua Hahn <joshua.hahnjy@gmail.com>
To: Wei Yang <richard.weiyang@gmail.com>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org,
	 John Hubbard <jhubbard@nvidia.com>,
	David Hildenbrand <david@redhat.com>, Zi Yan <ziy@nvidia.com>,
	 Matthew Brost <matthew.brost@intel.com>,
	Rakie Kim <rakie.kim@sk.com>,  Byungchul Park <byungchul@sk.com>,
	Gregory Price <gourry@gourry.net>,
	 Ying Huang <ying.huang@linux.alibaba.com>,
	Alistair Popple <apopple@nvidia.com>
Subject: Re: [PATCH] mm/migrate: remove the -EEXIST conversion for move_pages()
Date: Mon, 7 Jul 2025 10:10:58 -0400	[thread overview]
Message-ID: <CAN+CAwMbEa0PYJaEBo1h57kUAheW0CfkPA+U-HYZsgZ2QyZ4JQ@mail.gmail.com> (raw)
In-Reply-To: <20250707065711.18056-1-richard.weiyang@gmail.com>

On Mon, Jul 7, 2025 at 2:57 AM Wei Yang <richard.weiyang@gmail.com> wrote:
>
> The -EEXIST conversion is introduced in commit 65462462ffb2 ("mm/gup:
> follow_pfn_pte(): -EEXIST cleanup"), since follow_page() may call
> follow_pfn_pte() which may return -EEXIST.
>
> But after commit 7dff875c9436 ("mm/migrate: convert
> add_page_for_migration() from follow_page() to folio_walk"), it use
> folio_walk instead. This limit the error code and won't return -EEXIST.
>
> Remove the error code conversion here.
>
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> Cc: John Hubbard <jhubbard@nvidia.com>
> Cc: David Hildenbrand <david@redhat.com>
> Cc: Zi Yan <ziy@nvidia.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Cc: Joshua Hahn <joshua.hahnjy@gmail.com>
> Cc: Rakie Kim <rakie.kim@sk.com>
> Cc: Byungchul Park <byungchul@sk.com>
> Cc: Gregory Price <gourry@gourry.net>
> Cc: Ying Huang <ying.huang@linux.alibaba.com>
> Cc: Alistair Popple <apopple@nvidia.com>

Hello,

This makes sense, thank you for spotting this!
Reviewed-by: Joshua Hahn <joshua.hahnjy@gmail.com>

Have a great day!
Joshua


  parent reply	other threads:[~2025-07-07 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-07  6:57 Wei Yang
2025-07-07  7:25 ` David Hildenbrand
2025-07-07 13:57   ` Wei Yang
2025-07-07 14:10 ` Joshua Hahn [this message]
2025-07-09  0:57   ` Wei Yang
2025-07-07 17:44 ` Zi Yan
2025-07-09  0:57   ` Wei Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAN+CAwMbEa0PYJaEBo1h57kUAheW0CfkPA+U-HYZsgZ2QyZ4JQ@mail.gmail.com \
    --to=joshua.hahnjy@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=apopple@nvidia.com \
    --cc=byungchul@sk.com \
    --cc=david@redhat.com \
    --cc=gourry@gourry.net \
    --cc=jhubbard@nvidia.com \
    --cc=linux-mm@kvack.org \
    --cc=matthew.brost@intel.com \
    --cc=rakie.kim@sk.com \
    --cc=richard.weiyang@gmail.com \
    --cc=ying.huang@linux.alibaba.com \
    --cc=ziy@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox