Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp437835rwd; Tue, 16 May 2023 03:15:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4oTh4SuacCdCEJvfioD/hIVlbuHqn9/I+/Dz9IBdK+t+lARurbh2Iu4Vh0cCB2xnaD18E4 X-Received: by 2002:a05:6a00:cc8:b0:644:d220:64ac with SMTP id b8-20020a056a000cc800b00644d22064acmr48209751pfv.2.1684232129727; Tue, 16 May 2023 03:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684232129; cv=none; d=google.com; s=arc-20160816; b=tLjMm8l2n7p/V8CJ14DP5sf92pGRnZgCTg2hKBqf7Gio2nFaVgbBSVWs/E64cbSH4Y bj0D4rel8ew378ubgm05OM/byG2ume7wScHe3MYU37kd3GgoyMMfTLdPVFLl98A0IRM6 JtUoxANy4UFoRc8a56FrrScSLy2x21JuieQpUSdiHHlpefmjkJwZxLgMRy/wXYfXpn6A q8TtNDErJJUOFfg1dpLSvRIKWRDrBcXtcKuJdoEuaNoyLNTXKE4zPO1fDmcMp9B29+12 X9APki9HHbiGgF5Qg2IhDZfa8r0eI7bi7wgq4066TrwZOuzuzv1l4by0AZuAiq5R6G2B d+LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=1RxlCrk6EbJqNqa0OM5M3VptbYHjnItP/oMfvlu7bZI=; b=QQIsclvoME3bdQtRssnW8WsC2ecigleIwLS8SzBteYICtzHfgTeCve/3usSGCQlHOO CjFdGoBVexl4RaRPMHp20i8rTQP9Uqxn1nUtwLpr289w4xF+sRWDiT8OJaW1sselCFO/ /ogFCfBz3n4bAz8O/pshtuxKcCnt4t3EDdTma1HoGXa68El3Z8lME/9Co0hrm8zZp2yU peURtTg86aUH3M2Btb+BO6dvkNZGGAiAMrawQ3bmdqYPbv9U0Gy/KRXDj4Q1ubnSFyvt Cjv9uqvgIzQFxz5mct9NJJ5CzhLCXTAOHLqMV2iqri+SWp91LxzkK738moR1yKuBD4PE jLGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=V9tNJ3ab; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f64-20020a625143000000b0063b89234a5asi19195338pfb.371.2023.05.16.03.15.16; Tue, 16 May 2023 03:15:29 -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=@sberdevices.ru header.s=mail header.b=V9tNJ3ab; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231670AbjEPKLu (ORCPT + 99 others); Tue, 16 May 2023 06:11:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbjEPKLt (ORCPT ); Tue, 16 May 2023 06:11:49 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB2FD10DC for ; Tue, 16 May 2023 03:11:46 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 0D0F95FD03; Tue, 16 May 2023 13:11:45 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1684231905; bh=1RxlCrk6EbJqNqa0OM5M3VptbYHjnItP/oMfvlu7bZI=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=V9tNJ3abcwAmG9d5Rm/WDNKi8sXW6a+/JS5FRTOQhyySkpFoH7eFYLjLzWdS/Gdxk L0dy2Lv2n0E45b07dTPJ7JpEsMM/VBrIo0xZEPhnqtUay8LibGbhrjYX/7qw7EvHiH oyuUlPVB/NCLXOvFlNeLOWlhpCa7VdzT8tfNDWbeXnYYjREJLvcS7ToFMvxTAZFCKn T4+JsN56rXoa6ozYoqjjdcPeQwEYSssTNOOm1+7uwJEcRUR4eHu04aaDpaALQIbDv/ MOvcVXFefVrZFv+3Y9gk6gujBw6i54kAO8LenH8pYlQHHGqIbfl6sUjWOaUbY6cX8p X7B1f2hhFxP/A== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mx.sberdevices.ru (Postfix) with ESMTP; Tue, 16 May 2023 13:11:44 +0300 (MSK) From: Alexey Romanov To: Sergey Senozhatsky CC: "minchan@kernel.org" , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v1 1/2] mm/zsmalloc: use ARRAY_SIZE in isolate_zspage() Thread-Topic: [PATCH v1 1/2] mm/zsmalloc: use ARRAY_SIZE in isolate_zspage() Thread-Index: AQHZh9vrJATALyC8P0GomQA8blaPZ69cdoOAgAAFE4A= Date: Tue, 16 May 2023 10:11:44 +0000 Message-ID: <20230516101137.gqu5746k6qzigsw4@cab-wsm-0029881> References: <20230516095029.49036-1-avromanov@sberdevices.ru> <20230516095327.GA15689@google.com> In-Reply-To: <20230516095327.GA15689@google.com> Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.0.25] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/05/16 05:57:00 #21317490 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hello! On Tue, May 16, 2023 at 06:53:27PM +0900, Sergey Senozhatsky wrote: > On (23/05/16 12:50), Alexey Romanov wrote: > > mm/zsmalloc.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c > > index 702bc3fd687a..f23c2da55368 100644 > > --- a/mm/zsmalloc.c > > +++ b/mm/zsmalloc.c > > @@ -1888,7 +1888,7 @@ static struct zspage *isolate_zspage(struct size_= class *class, bool source) > > fg[1] =3D ZS_ALMOST_EMPTY; > > } > > =20 > > - for (i =3D 0; i < 2; i++) { > > + for (i =3D 0; i < ARRAY_SIZE(fg); i++) { > > zspage =3D list_first_entry_or_null(&class->fullness_list[fg[i]], > > struct zspage, list); > > if (zspage) { >=20 > This patch needs to be dropped. We don't have that function anymore. Do I need to sumbit v2 without this patch, or will Andrew just take only the 2/2 patch into the branch? --=20 Thank you, Alexey=