Re: [PATCH v3 3/3] mm,page_owner: Fix accounting of pages when migrating

From: Oscar Salvador
Date: Tue Apr 02 2024 - 07:20:54 EST


On Tue, Apr 02, 2024 at 12:26:51PM +0200, Vlastimil Babka wrote:
> Can the migration still fail after __folio_copy_owner()? That goes again to
> the comment you changed in patch 1/3. If it can, this will kinda create a
> mess with the old folio's handles not reflecting reality? (although
> refcounts will be ok)

According to my research (I replied in patch#1), no, migration cannot
fail after __folio_copy_owner(), so we are safe here (Tm).


--
Oscar Salvador
SUSE Labs