Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5030425rwr; Sun, 23 Apr 2023 19:38:56 -0700 (PDT) X-Google-Smtp-Source: AKy350bajWPpa+6WG9Ew/nVZNhrzjRUNNAm2UoT3fsGmmWiXfHJylu9tnaX9hrv7m2S8R2V0cY/o X-Received: by 2002:a05:6a00:188b:b0:63f:37b8:655 with SMTP id x11-20020a056a00188b00b0063f37b80655mr6685368pfh.20.1682303936537; Sun, 23 Apr 2023 19:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682303936; cv=none; d=google.com; s=arc-20160816; b=BdYVePB1v+vHrOMDQdsrjITdFC1YoCpY6eA/mXe5/5DXhGfd9BJveDWVavtSCWi7Q0 XyjYkF1CiYxX7PlEds1+rm0PFCaQS4UHvNtCpkxaN78gVgFOYjSLjOby/lUOUZwxV3tV fPBqfmGKyA/KdZWAP5f/CbN8gC/vpzIA6cfpAmo0VY0vebBVxeK1MAHMwF/KYsizOmxD 55LqbZnyenQKeYLzUmnfHIgbNCkYAbb7Qdl3oqm5cC7PDN0F150L+Svxs0QQcfjJX2bl XUR49PIYU2ioEqfXquM24XEXlVPd4gmjykQeQ4PXNTAmgByJq1bfr9z7UcRvBpheboEs YmsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Er9IodKAhu5Xy/24MmuM3ISnj8SFsqKhcDcV85YYtd4=; b=qddFpvKV7yKEkpgnLr297sIFop1QwNrO2yQCNj2tCMXmc0gT+NZ5TKGQfY2udmvuXB b8oe7ElkwQ1iypFQoQ/neB2Irlvas+t31NctrHIedYpaFzJqNDQha0w94aoXmCz+yuri Hqc2EOWVj3tWYbPeEDidbO6pMvj9i2bqMM2nr6rlFMsAjXLwwpvMkYHInwOqlw1N0C5E HIOHAHKh8U+GgpA5a+3+KS1A5PTBMU1LdMrtbg4xEaGlhcRFbAklD1lwubHzti5VWDrz Gu/hcaIX5QQ3sii6b08Kc3ccIHyKAEbdfwM9pcBGa/dtll3itb7/Dsfb3yuYZWhFVh6s TLHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Myis4J2Z; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a056a0000cb00b0063f032d78efsi9871030pfj.269.2023.04.23.19.38.45; Sun, 23 Apr 2023 19:38:56 -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=@chromium.org header.s=google header.b=Myis4J2Z; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230179AbjDXCgd (ORCPT + 99 others); Sun, 23 Apr 2023 22:36:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbjDXCgc (ORCPT ); Sun, 23 Apr 2023 22:36:32 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B0B0210C for ; Sun, 23 Apr 2023 19:36:31 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-63b46186c03so4951350b3a.3 for ; Sun, 23 Apr 2023 19:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1682303790; x=1684895790; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Er9IodKAhu5Xy/24MmuM3ISnj8SFsqKhcDcV85YYtd4=; b=Myis4J2Z9lmx+G/UGHQV666UFM6OJ8EKtdAre2rvRUUjU2E+rQLKwJ+D0eYgmT72Z9 5SaX6H/C77vylvdgFXO4tn7m7ArVvZvZSOxiW6NiLDX5h8w4cEfp1YoxEuHlyRXPz09e 5JgUmEmUJwM1H8XEmuezqPmJ+lzP8zXU2UJcc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682303790; x=1684895790; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Er9IodKAhu5Xy/24MmuM3ISnj8SFsqKhcDcV85YYtd4=; b=UoIcqDgQ+YcVnyPIt98ZH2uieSyBpK4ESsYS/yY9b29UuKqbm4kuAaXGCddYYBLxKS I07mqEMWcy6IlMl1SJIf8DmY1o0MMIZlbMNOpNVQxULgbZF59aRdCq3+YEA1kIGfOKoY 55ZO8qyxGoTuSoOqqoKV5aIkzBvwgYVnhZ8h1T/ADH/KUIlAc+NuQIEiQ1hMcsSM2xP1 Gzj+E26nKOgpVt/re1/0SFVt8gmZHKSgKFnIUFdvo2nnBQyp20Rt/I3/P7wKGCMm3qZI S68ucGEtjHmZFW2yoQsk8QMbIe9tzdcBsTprFu2sAKtXy8AGslUZNKrlaIfN+411MV6l mfeA== X-Gm-Message-State: AAQBX9fWAnJFUYqMohLq6k3sdt9SRP1BkN3/NEuJoa71rWn4nCJ1pFmD irfzu5xywM9rJoOyXa/xV4LJoA== X-Received: by 2002:a05:6a00:2406:b0:63d:38aa:5617 with SMTP id z6-20020a056a00240600b0063d38aa5617mr12656579pfh.6.1682303790512; Sun, 23 Apr 2023 19:36:30 -0700 (PDT) Received: from google.com (KD124209188001.ppp-bb.dion.ne.jp. [124.209.188.1]) by smtp.gmail.com with ESMTPSA id h8-20020aa786c8000000b0063b8279d3aasm6183422pfo.159.2023.04.23.19.36.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Apr 2023 19:36:29 -0700 (PDT) Date: Mon, 24 Apr 2023 11:36:23 +0900 From: Sergey Senozhatsky To: Luis Chamberlain Cc: axboe@kernel.dk, agk@redhat.com, snitzer@kernel.org, philipp.reisner@linbit.com, lars.ellenberg@linbit.com, christoph.boehmwalder@linbit.com, hch@infradead.org, djwong@kernel.org, minchan@kernel.org, senozhatsky@chromium.org, patches@lists.linux.dev, linux-block@vger.kernel.org, linux-mm@kvack.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, dm-devel@redhat.com, drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org, willy@infradead.org, hare@suse.de, p.raghav@samsung.com, da.gomez@samsung.com, kbusch@kernel.org Subject: Re: [PATCH 5/5] zram: use generic PAGE_SECTORS and PAGE_SECTORS_SHIFT Message-ID: <20230424023623.GC1496740@google.com> References: <20230421195807.2804512-1-mcgrof@kernel.org> <20230421195807.2804512-6-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230421195807.2804512-6-mcgrof@kernel.org> X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 (23/04/21 12:58), Luis Chamberlain wrote: > > Instead of re-defining the already existing constants use the provided ones: > > So replace: > > o SECTORS_PER_PAGE_SHIFT with PAGE_SECTORS_SHIFT > o SECTORS_PER_PAGE with PAGE_SECTORS > > This produces no functional changes. > > Signed-off-by: Luis Chamberlain Reviewed-by: Sergey Senozhatsky