Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1047443ioo; Thu, 26 May 2022 23:36:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRUzrYQeOfMou/vvCfLgUvxrMWtH/pm35DIz7RlPUSOR5iCIzB+MMrB+XB370p5DhVT6HP X-Received: by 2002:a63:844a:0:b0:3f9:f00e:a4b0 with SMTP id k71-20020a63844a000000b003f9f00ea4b0mr25225214pgd.335.1653633364096; Thu, 26 May 2022 23:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653633364; cv=none; d=google.com; s=arc-20160816; b=kusTUcRCSMt783MJXOcNTWpYV8QF6JCK5LDF9wwRiyHEAPBxAj4XAwCpF26wfaNJob ocrMuJzuQsPV2Bks7cqYe+44pN25ooW2ujvxTp7gD7IJsySjgHRolZ7D6zEC+WMbCTBs +W2hMw6qwFdRdqpuqYNEqdFBSNqYpCVREElullChD5E0KWwuGKwVs5y9tjCXsFGkKL9W uueCgU/rsRcl6IfTWoCP4jCLFaq/RsFlzPjaLs0JsIoYsFtA0lccO2Sl+cp6zsjly1nJ nLZbi7tKaks3Zpl2zLOG68iGSYCtF2JV+vSG3CwNTIXDRswCzs0g/SK0UvqVacn2Hw8a qBOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ftTeYKP9cfFJxUORbZTewghh6E2NdQvJ/R5uaGw+pNM=; b=Qn/DVSiTeMdp7TwSbCCb8tiT2nS5FJyTTbpFyck1+yIevwZfOvqpTXcD5Y0xoBrCOZ H/CShntekrbyrvNYafUQhuiCdPGGf2ZtCAcagLBnWEVqDe6TBdY8atKRAhv2jPZxFXDn iwj/cESC3n9cfaJ7eKh7kSLckpYGPRC+fSP8nLaEWF3H24S9SUzpToH7eCYGtWLRfpan 4hU2tqq166MkLusiHO2X6sabslgvj/4G6IugyCh5BRpWDW/ae9d5jNHKGQsJHm7osmWV EJ9TREs1voieQQrDR/lw1L4I6lzy14qDZiQ3g+u6xvcd8Xuc6hUa9q1n1nnYOzAB4lRr 7e9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=gzHz70Tr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot1-20020a17090b3b4100b001d1c84b8ea2si1970917pjb.156.2022.05.26.23.35.52; Thu, 26 May 2022 23:36:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=gzHz70Tr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232254AbiE0CBk (ORCPT + 99 others); Thu, 26 May 2022 22:01:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231604AbiE0CBh (ORCPT ); Thu, 26 May 2022 22:01:37 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A134B1E3DB for ; Thu, 26 May 2022 19:01:34 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id i11so5685634ybq.9 for ; Thu, 26 May 2022 19:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ftTeYKP9cfFJxUORbZTewghh6E2NdQvJ/R5uaGw+pNM=; b=gzHz70Tr6RZspSCNjG1e+dt5VKS5Nnq1KCvlvCNtiXgdkrj0ytyKL0EWBdF/HuhIz0 vlRzvwQ8dc/D7+jJNeNnWTllUHKfGuLIJNsPPeEYjaNm2D4r9f2F9Oa7O1DRnd5rpTlv 9f9R4O1D1SmDvDHbElYoIIQPrweXcNNPnM70H5BiP93rTSPMdNesCqxc0Hn5N/0pcO8R XIDkgN2eDMzU9z24QUIYywDKxPHWMmFtDzuJ9Kymyczc/yaXDzkrekV15rHpg6k/7Nmi 9KGZKAr7VCrBkbEan8C0WaNF2KsGDvv+rnWp3+JTiB/hirgk/7BkuOZ20oSuB+tjKk5T JeZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ftTeYKP9cfFJxUORbZTewghh6E2NdQvJ/R5uaGw+pNM=; b=Uo7yVesppdCZhB6W6ECWsnreF7yCfhw+ZlqnQxVdkMRApgYaB9qIaJ1G0i8wxnSk1T PkdUptpunZVk4sxaw1Au1m431MdiirRC++31vpBt41Nc3WUiDc+2ydPypBQjd9lw3Dx0 B5D++6Z4RAwL5p/vGm3+KK26KNMVXj8WHNUdAyOpdCYV7xtkqXJxqNyCDBF6oBG6Bpj1 efXfvO+orpiRNWoYtPYmbWb7OeuRNOO5Gh0UAIhzfXqIk+48kgPnM6AGaXidoORZx+aA bdfQzyCMYODJVV+uUBnNHEK6M4v1bb7nC2L+vdI3RaKqLFhXZHfDgU3XadrIZfRTbsC4 amwQ== X-Gm-Message-State: AOAM530kq2AErJM+OVWvukDxAihDB7rJdEP0bRadHtRySokAxf43OnS3 yx+OTYPXpqGqSZ1AFD2bEHbK4g31pI7YA/kTep6rIA== X-Received: by 2002:a05:6902:4e4:b0:655:caf6:dc38 with SMTP id w4-20020a05690204e400b00655caf6dc38mr9247302ybs.261.1653616893842; Thu, 26 May 2022 19:01:33 -0700 (PDT) MIME-Version: 1.0 References: <20220526142038.1582839-1-bh1scw@gmail.com> In-Reply-To: <20220526142038.1582839-1-bh1scw@gmail.com> From: Muchun Song Date: Fri, 27 May 2022 10:00:55 +0800 Message-ID: Subject: Re: [PATCH] x86/mm: use PAGE_ALIGNED instead of IS_ALIGNED To: bh1scw@gmail.com Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , "H . Peter Anvin" , X86 ML , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 26, 2022 at 10:21 PM wrote: > > From: Fanjun Kong > > The already provides the PAGE_ALIGNED macro. Let's > use this macro instead of IS_ALIGNED and passing PAGE_SIZE directly. > > Signed-off-by: Fanjun Kong Reviewed-by: Muchun Song