• Peter Xu's avatar
    Partly revert "mm/thp: carry over dirty bit when thp splits on pmd" · 624a2c94
    Peter Xu authored
    Anatoly Pugachev reported sparc64 breakage on the patch:
    
    https://lore.kernel.org/r/20221021160603.GA23307@u164.east.ru
    
    The sparc64 impl of pte_mkdirty() is definitely slightly special in that
    it leverages a code patching mechanism for sun4u/sun4v on relevant pgtable
    entry operations.
    
    Before having a clue of why the sparc64 is special and caused the patch to
    SIGSEGV the processes, revert the patch for now.  The swap path of dirty
    bit inheritage is kept because that's using the swap shared code so we
    assume it'll not be affected.
    
    Link: https://lkml.kernel.org/r/Y1Wbi4yyVvDtg4zN@x1n
    Fixes: 0ccf7f16
    
     ("mm/thp: carry over dirty bit when thp splits on pmd")
    Signed-off-by: default avatarPeter Xu <peterx@redhat.com>
    Reported-by: Anatoly Pugachev <matorola@gmail.com> 
    Tested-by: Anatoly Pugachev <matorola@gmail.com> 
    Cc: Alistair Popple <apopple@nvidia.com>
    Cc: Andi Kleen <andi.kleen@intel.com>
    Cc: Andrea Arcangeli <aarcange@redhat.com>
    Cc: David Hildenbrand <david@redhat.com>
    Cc: David S. Miller <davem@davemloft.net>
    Cc: "Huang, Ying" <ying.huang@intel.com>
    Cc: Hugh Dickins <hughd@google.com>
    Cc: "Kirill A . Shutemov" <kirill@shutemov.name>
    Cc: Minchan Kim <minchan@kernel.org>
    Cc: Nadav Amit <nadav.amit@gmail.com>
    Cc: Vlastimil Babka <vbabka@suse.cz>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    624a2c94
huge_memory.c 87.9 KB