Message ID | 20230522112058.2965866-1-talumbau@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1383052vqo; Mon, 22 May 2023 04:46:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42uu3eBYRFKWe8gA32QoACJqM8r8YhN+Hzjf5aEHrjGx3rrV8L2B+hZnGK1vDZ+82n1ZaV X-Received: by 2002:a05:6a00:14c4:b0:646:2e83:6b2e with SMTP id w4-20020a056a0014c400b006462e836b2emr13089192pfu.31.1684755981743; Mon, 22 May 2023 04:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684755981; cv=none; d=google.com; s=arc-20160816; b=nw6XRe8sLTbKb7dYLVcj1pocd+vA5pQ1GcCt2REA7tjpsQM2lC6XeVzvduuzOxh7by e2QR0RTvAJWGFMahYp2hO8MtBGAKV/SD1jxl6KIeuYpFTic1H/s2/BB//SPBnQtS1dYw uUDZwZxwCyesM5VVKCCVimutUrm5hWTK5KIzDHuPy2dYumqdwtrZj2r758pdKcO67air BC8w3aE2DEUw15rqKaxDzOpvELXlzhM/7lz1p3Sni5RQnOp1sVZ1jBgch4BBO+gJGeKB 4QpYFdaMxlV6hz8owcE9IszKVGe5gIaK1FE9Og0yRbr/epzCWRMVh60NKgZ8XoesvgP3 C1+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=tjbotIl6dteDpFw7M2HIwfdcqW8YhSXjziuk6U7H4Oo=; b=lLSPSaMKRjwg65Q6lzdoPKDtUZ+zHBrw7vjPjSqlFUtNxD/a3ufRXj7sWNT011J+Hi g5QdN72uq1DSXYvOv+cn9WrsHdwwndUzTKuXNxL/r9fw4+QX4Cu5a5uw6uZqsN6v9PAO IIhMutVQDvWZFacbYnaFOXMSf36RK68XTIbuS8yNRnJe7NyNVOI5nKDjQLQ3f67gBLl8 mOdF3rkVPhP838by4ksnOxzLV08mdZaSuWtvKqDPUY8cP9QpPkhXqzLiXV38Y9pZav5c 0ZNGs5EyQGxEndMrqL4FTMBk56cl1xUHsEhyNrjONqwSWFUezMev8U6vWzOmq+KEye6R TuFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=chESpP8R; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h126-20020a636c84000000b0051bb433f5d3si4713081pgc.862.2023.05.22.04.46.05; Mon, 22 May 2023 04:46:21 -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=@google.com header.s=20221208 header.b=chESpP8R; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233316AbjEVLYn (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Mon, 22 May 2023 07:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233353AbjEVLY1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 22 May 2023 07:24:27 -0400 Received: from mail-il1-x149.google.com (mail-il1-x149.google.com [IPv6:2607:f8b0:4864:20::149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E161F1FDC for <linux-kernel@vger.kernel.org>; Mon, 22 May 2023 04:21:12 -0700 (PDT) Received: by mail-il1-x149.google.com with SMTP id e9e14a558f8ab-3381796d685so93611615ab.1 for <linux-kernel@vger.kernel.org>; Mon, 22 May 2023 04:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1684754472; x=1687346472; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=tjbotIl6dteDpFw7M2HIwfdcqW8YhSXjziuk6U7H4Oo=; b=chESpP8RhTjBYYVdguowYuRgIznzG4M2UF9I7tFZtlG8zb2E0krTaM/+YPGrU8lWr7 l/ys2WLnJQP7hnutQyiv7RNRbbcPcCKWKSYiG5hc0J0QT7WfehDUyCSIFZbvY6XzplnK kxMCdv2IBYm4MP4HlRbMs9m1RwRcMyy2i5IrR8FpwbTiEGvFv5gb7Jr4uzHdURDpMXPq lPDRcdGUF3kRVoBf/nZGEJdAB+wBQltqNBDiTKDRwz1tJqIrABPqDnDY4h9pUGo4VXHw ZqM5JpkVP0R1tDNbnzeIIV3YCvOaNhpBgQTK6mvck7LioQUhlY6FyFvE5tc/7k6XnuKM JDuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684754472; x=1687346472; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tjbotIl6dteDpFw7M2HIwfdcqW8YhSXjziuk6U7H4Oo=; b=Q9e12nwxrXzRHs9ZGXzI7VTZdl+P3R8vpEcymuEy4tJ1U9NHfRq3DYR0lRxAbRN4dy E7KHB0rsUDNJm3H+/RhexDE22uThfBr2Y3ACrbxtb0EVDw79wlvCOpoH+nKBM47JqBPR 6VE9gec2zwQ5Vnd5zuSZVbshWAtO5Vc40HIEWDXsraagi6cpg56ECvV9P1tXlhvAjIw5 pYpXqL4NjHdGW7Q9X3YqmFRnKjpSKsolHRYgoQlJrJgP0GgdzIMa0yxjSXNIKH9WLO5O B6u7xYBBU03wn3cfGpoWZJZjSG6FryQppTWVHdwWmSQySZWVH1WtqWzTJh4SHjVR45B/ LbpQ== X-Gm-Message-State: AC+VfDzWeUX1ZUyD1V1mwxJuwGeTTNHC6EKuFKenpOzyVecAuWjBnBf2 v7dlvHGVwFgetEybNYc+5JI77/8lIF1oNA== X-Received: from talumbau.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:90d]) (user=talumbau job=sendgmr) by 2002:a92:cb44:0:b0:335:479a:8eaa with SMTP id f4-20020a92cb44000000b00335479a8eaamr6111039ilq.6.1684754471949; Mon, 22 May 2023 04:21:11 -0700 (PDT) Date: Mon, 22 May 2023 11:20:55 +0000 Mime-Version: 1.0 Message-ID: <20230522112058.2965866-1-talumbau@google.com> Subject: [PATCH mm-unstable 1/4] mm: multi-gen LRU: use macro for bitmap From: "T.J. Alumbaugh" <talumbau@google.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: Yuanchu Xie <yuanchu@google.com>, Yu Zhao <yuzhao@google.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-mm@google.com, "T.J. Alumbaugh" <talumbau@google.com> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766594688106742268?= X-GMAIL-MSGID: =?utf-8?q?1766594688106742268?= |
Series |
[mm-unstable,1/4] mm: multi-gen LRU: use macro for bitmap
|
|
Commit Message
T.J. Alumbaugh
May 22, 2023, 11:20 a.m. UTC
Use DECLARE_BITMAP macro when possible.
Signed-off-by: T.J. Alumbaugh <talumbau@google.com>
---
mm/vmscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 22.05.23 13:20, T.J. Alumbaugh wrote: > Use DECLARE_BITMAP macro when possible. > > Signed-off-by: T.J. Alumbaugh <talumbau@google.com> > --- > mm/vmscan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/vmscan.c b/mm/vmscan.c > index 4637f6462e9c..cf18873a36b9 100644 > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -4144,7 +4144,7 @@ static void walk_pmd_range(pud_t *pud, unsigned long start, unsigned long end, > unsigned long next; > unsigned long addr; > struct vm_area_struct *vma; > - unsigned long bitmap[BITS_TO_LONGS(MIN_LRU_BATCH)]; > + DECLARE_BITMAP(bitmap, MIN_LRU_BATCH); > unsigned long first = -1; > struct lru_gen_mm_walk *walk = args->private; > Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Yuanchu Xie <yuanchu@google.com> On Mon, May 22, 2023 at 7:21 PM T.J. Alumbaugh <talumbau@google.com> wrote: > > Use DECLARE_BITMAP macro when possible. > > Signed-off-by: T.J. Alumbaugh <talumbau@google.com> > --- > mm/vmscan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/vmscan.c b/mm/vmscan.c > index 4637f6462e9c..cf18873a36b9 100644 > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -4144,7 +4144,7 @@ static void walk_pmd_range(pud_t *pud, unsigned long start, unsigned long end, > unsigned long next; > unsigned long addr; > struct vm_area_struct *vma; > - unsigned long bitmap[BITS_TO_LONGS(MIN_LRU_BATCH)]; > + DECLARE_BITMAP(bitmap, MIN_LRU_BATCH); > unsigned long first = -1; > struct lru_gen_mm_walk *walk = args->private; > > -- > 2.40.1.698.g37aff9b760-goog >
diff --git a/mm/vmscan.c b/mm/vmscan.c index 4637f6462e9c..cf18873a36b9 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -4144,7 +4144,7 @@ static void walk_pmd_range(pud_t *pud, unsigned long start, unsigned long end, unsigned long next; unsigned long addr; struct vm_area_struct *vma; - unsigned long bitmap[BITS_TO_LONGS(MIN_LRU_BATCH)]; + DECLARE_BITMAP(bitmap, MIN_LRU_BATCH); unsigned long first = -1; struct lru_gen_mm_walk *walk = args->private;