]> Git Repo - linux.git/commit - mm/page_ext.c
mm/page_ext: remove rollback for untouched mem_section in online_page_ext
authorKemeng Shi <[email protected]>
Fri, 14 Jul 2023 11:47:48 +0000 (19:47 +0800)
committerAndrew Morton <[email protected]>
Fri, 18 Aug 2023 17:12:31 +0000 (10:12 -0700)
commit3c09be5a2be861d7f74b0251a8e77859b4c654cc
treef75f55f9b98747cbb94d47a54fdb28736b425872
parent063ff7cd8bf24aa14c897b6168591d3d0dae2a5e
mm/page_ext: remove rollback for untouched mem_section in online_page_ext

If init_section_page_ext failed, we only need rollback for mem_section
before failed mem_section.  Make rollback end point to failed mem_section
to remove unnecessary rollback.

As pfn += PAGES_PER_SECTION will be executed even if init_section_page_ext
failed.  So pfn points to mem_section after failed mem_section.  Subtract
one mem_section from pfn to get failed mem_section.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kemeng Shi <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
mm/page_ext.c
This page took 0.047849 seconds and 4 git commands to generate.