From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5A7C197A7D for ; Sun, 26 Apr 2026 21:48:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777240098; cv=none; b=pDP7Xp9/sTP/CLvi+UJC9o2PjyCuHXumrUe2q6ZJ+cvoets2vL62EeeLoywkEq5Ql7QjdwL3RLzDhGqeAZHAFKgkoM0izReZnWW/MEg4BSKEZvQo9JIO0ZLKr9hmU/mvAxwIn3q80podzo322+qSWiwEpx8VvycEqgKh/uOI3Mk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777240098; c=relaxed/simple; bh=o+vhOTjLhvS47fv9tom+Yt3TM9vgXV0mo+tAnh6qa+g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: In-Reply-To:Content-Type:Content-Disposition; b=HztdIUkW9ZkRbJMwtG93lkqf/3O0MhyROkbxzLVY3/UdfwQtSVLXKpI5lis8sOO8pJOitmWul6rKCbpaqTPvnkQ3K0BL9ib2PhU5p31bGiS/KawRe3sHm8lbK0xE5AyCwAqht668lHLRrHO76neOFxRgbipJZrd1PHDbTHO6CM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=TgPxFQY1; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TgPxFQY1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1777240096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KxxPeFo8b5YQQgq6okT6k4ODeRwXIuGSW0SUh4EUnR0=; b=TgPxFQY1VvQDzV5yyrlydLtRzB0pW9KQSYCoi3c5I3q9+mjOTnqUGV7Sbo290w9wNb7En0 wOvmRbdDw3eyQISgm7xbK020jiC8xXzTWp8XLzJQHSviJU0d9pPwYaHrmI7BIw4MBer5Ot kMWo/hjB8cpOBkH+uh0qztTA1ro2xWc= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-682-vrOXFUgdNnGRtTIux9G7uA-1; Sun, 26 Apr 2026 17:48:15 -0400 X-MC-Unique: vrOXFUgdNnGRtTIux9G7uA-1 X-Mimecast-MFC-AGG-ID: vrOXFUgdNnGRtTIux9G7uA_1777240094 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-486fa07f2bbso66776085e9.2 for ; Sun, 26 Apr 2026 14:48:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777240093; x=1777844893; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KxxPeFo8b5YQQgq6okT6k4ODeRwXIuGSW0SUh4EUnR0=; b=pRPRXFMUFesxijCJ1B/PzlC77NgWCC9dhv7qrtSpWsF2Fue+xrkz20lZiQMPJfHjQV gSe/Ucm/TcK/b1e2b50wmfi1j5UT0zinPs0r1Z3y/09atlwoW8WLQGlcfW/cRqORTHHC 8szAs+X6zXSV4cnDd3huslQMwaST7zbGVuGV13D/aAR33dZViMCo+g72rqQkIRIiCKeh febnHJbWdG/mi9vVPOVEjTo3akYN9sf8Gm7b2n6kCb9uvEcP+eQcrWpaUNXaFRS5BDpX jECKkTX3pLVQBxPJLSp23GNiSuqgaoXZw8d59JqddqENdnaRy1mTY6LFiWVJG0Sgwupt jIpQ== X-Forwarded-Encrypted: i=1; AFNElJ/59vuPeoQL19Yw1IJuxKkvsbZNdvCqsB/gAzEaw+3JT0dD2ZiTpl1b+FtiqkauhJl+Xfbjf7qpogwr6v2Tng==@lists.linux.dev X-Gm-Message-State: AOJu0YxUdsEBDzw0eh6KGcAqb3SWCb4tSSJHQnVgktRuCWxWTHLqxem+ 8Co+ohZRGkHUqWankakIhNtvynnoU7rtdr2LonCpu9Ilk4yRuFmj03RuAB+MoaTrGK1kqAmye70 RaYZQidcZdLNQAVF0//HH2gT9K6os6YNU9HCrGdzFJy5kk0Xuho7NUlkIjZXqJ0sa4CJQktvGUg Ga X-Gm-Gg: AeBDieudQiuNkF7Rd/MhADf+AaEOF5czH/zvocscmVrrwKOyEtk6lHz463/zaXNGzvV jYYWCSUdEVTzHiYGWvifmZOI3eK0DhYmjMEGvJQ8M2HuBvFs+5IWycGJnKttZc72VInha1brpeC evH9CBBJX4mo4qoy+oT715DpvCnRHmDnxZPJ6nxQc77LxQrXAthuMTg4lHaFF4BuBY5nkUSp5Ya UIJuAvtQXRFoxFlBaGZzqvrFutH7yuoCGUwiUGbVSnjeHsIRS42mc+WPVPAiQW7iUn69+PzvFxe bK9+6s0rvx7fiUA8i1LtJQC/1+VBnjCZarMtsplEH9IxfP55fGVaCTe+1Yyxehs++etFJos1eQa DO4l/OpAtvNKf+yd3ZXbWZ+8P//5lQ24Y3wwZnLjuEFZiTvhGDjCRu3sP X-Received: by 2002:a05:600c:6296:b0:488:c40b:c8a4 with SMTP id 5b1f17b1804b1-488fb73d764mr551943095e9.1.1777240093437; Sun, 26 Apr 2026 14:48:13 -0700 (PDT) X-Received: by 2002:a05:600c:6296:b0:488:c40b:c8a4 with SMTP id 5b1f17b1804b1-488fb73d764mr551942475e9.1.1777240092952; Sun, 26 Apr 2026 14:48:12 -0700 (PDT) Received: from redhat.com (IGLD-80-230-47-179.inter.net.il. [80.230.47.179]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-489fec8f7cbsm454414365e9.11.2026.04.26.14.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2026 14:48:12 -0700 (PDT) Date: Sun, 26 Apr 2026 17:48:09 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: Andrew Morton , David Hildenbrand , Vlastimil Babka , Brendan Jackman , Michal Hocko , Suren Baghdasaryan , Jason Wang , Andrea Arcangeli , Gregory Price , linux-mm@kvack.org, virtualization@lists.linux.dev, Magnus Lindholm , Greg Ungerer , Geert Uytterhoeven , Richard Henderson , Matt Turner , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-alpha@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-s390@vger.kernel.org Subject: [PATCH RFC v4 12/22] mm: remove arch vma_alloc_zeroed_movable_folio overrides Message-ID: <424f14373b3339c93cab7a080614b7e0dbe7596f.1777223007.git.mst@redhat.com> References: Precedence: bulk X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: VTztwI-iCgcmCHQqNsmu0rfLM7Dnf97t098H3iDBTkc_1777240094 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Now that the generic vma_alloc_zeroed_movable_folio() uses __GFP_ZERO, the arch-specific macros on alpha, m68k, s390, and x86 that did the same thing are redundant. Remove them. arm64 is not affected: it has a real function override that handles MTE tag zeroing, not just __GFP_ZERO. Suggested-by: David Hildenbrand Acked-by: Magnus Lindholm Acked-by: Greg Ungerer Acked-by: Geert Uytterhoeven # m68k Signed-off-by: Michael S. Tsirkin --- arch/alpha/include/asm/page.h | 3 --- arch/m68k/include/asm/page_no.h | 3 --- arch/s390/include/asm/page.h | 3 --- arch/x86/include/asm/page.h | 3 --- 4 files changed, 12 deletions(-) diff --git a/arch/alpha/include/asm/page.h b/arch/alpha/include/asm/page.h index 59d01f9b77f6..4327029cd660 100644 --- a/arch/alpha/include/asm/page.h +++ b/arch/alpha/include/asm/page.h @@ -12,9 +12,6 @@ extern void clear_page(void *page); -#define vma_alloc_zeroed_movable_folio(vma, vaddr) \ - vma_alloc_folio(GFP_HIGHUSER_MOVABLE | __GFP_ZERO, 0, vma, vaddr) - extern void copy_page(void * _to, void * _from); #define copy_user_page(to, from, vaddr, pg) copy_page(to, from) diff --git a/arch/m68k/include/asm/page_no.h b/arch/m68k/include/asm/page_no.h index d2532bc407ef..f511b763a235 100644 --- a/arch/m68k/include/asm/page_no.h +++ b/arch/m68k/include/asm/page_no.h @@ -12,9 +12,6 @@ extern unsigned long memory_end; #define copy_user_page(to, from, vaddr, pg) copy_page(to, from) -#define vma_alloc_zeroed_movable_folio(vma, vaddr) \ - vma_alloc_folio(GFP_HIGHUSER_MOVABLE | __GFP_ZERO, 0, vma, vaddr) - #define __pa(vaddr) ((unsigned long)(vaddr)) #define __va(paddr) ((void *)((unsigned long)(paddr))) diff --git a/arch/s390/include/asm/page.h b/arch/s390/include/asm/page.h index f339258135f7..04020a19a5cf 100644 --- a/arch/s390/include/asm/page.h +++ b/arch/s390/include/asm/page.h @@ -67,9 +67,6 @@ static inline void copy_page(void *to, void *from) #define copy_user_page(to, from, vaddr, pg) copy_page(to, from) -#define vma_alloc_zeroed_movable_folio(vma, vaddr) \ - vma_alloc_folio(GFP_HIGHUSER_MOVABLE | __GFP_ZERO, 0, vma, vaddr) - #ifdef CONFIG_STRICT_MM_TYPECHECKS #define STRICT_MM_TYPECHECKS #endif diff --git a/arch/x86/include/asm/page.h b/arch/x86/include/asm/page.h index 416dc88e35c1..92fa975b46f3 100644 --- a/arch/x86/include/asm/page.h +++ b/arch/x86/include/asm/page.h @@ -28,9 +28,6 @@ static inline void copy_user_page(void *to, void *from, unsigned long vaddr, copy_page(to, from); } -#define vma_alloc_zeroed_movable_folio(vma, vaddr) \ - vma_alloc_folio(GFP_HIGHUSER_MOVABLE | __GFP_ZERO, 0, vma, vaddr) - #ifndef __pa #define __pa(x) __phys_addr((unsigned long)(x)) #endif -- MST