Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp521570pxb; Wed, 25 Aug 2021 08:35:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLB+zKL27E2wrmf0qd6zfwVg8LyVcPoW1mtaEM/Xy7Ze5fl6Bl0B8UIHYxURKO+okq+HXq X-Received: by 2002:a05:6e02:4c3:: with SMTP id f3mr31360514ils.248.1629905739131; Wed, 25 Aug 2021 08:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629905739; cv=none; d=google.com; s=arc-20160816; b=sHm1lzLFi0yZZ1gXolfdu+UwjJgWhK8719cF3N65pWPQylhtZROxiPyT6gV6bp0WVG NGvs0AQBgcusLzHyJ6zjF7MkhoKw857/CDGDiyMCk0yTvL/PY+jFwdSXZe3cgT99EYx6 IpnJtNxc62bXfnBTbt/uU4fqg8kgKZ8JC1pW1qd9SAMsRWnz1dKLivWRmoLhGBgGr55h nZMIcj+fGAyt67yFFkigIQbYpSKu4+ySl3WIWSm4xto+2MQgUNEkjiEMFkls5NXx5o/U gJ/FtRPJVL+1IgFG6lLdXchQU4mfyafwhZxerFH9t7oWRHGvAGkSeteq5K47J0joOa65 GxVQ== 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; bh=MXwh6071gbHrf2u0rl9uXOM5gLLWs2laNFiF9N5/mag=; b=a2FSIOk6LVq+gLCCvjO3lOaL9ILPOm5BXuSp1bqs2ngZzEBY45xLESuuwbRTmIaCKc PTaF/D6efrEIOkR8rosCCEg/ZLB9GClC/RsB9luTjkOKn0592gBOJHm7lFnhAbxGvwUH PhCCAL/IGwprJ80/ImWpAD2ysx0iGXa1hPuCEuAii4cGsYC3asUbooy2DPebnSrkLwRX zQ2f2+uUfhHNG0FdxAyIVLhAFXht5tLig/B78yDru//N1m1OKPL7rN7mRQUVEx1WsIle l8/gyvWTdqvotvl2Opj73oJgrgwac4Y6mksRJ/VarvY1DOQY4hKBwER7fRkljuCmCiNT JxLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si95919ioq.2.2021.08.25.08.35.03; Wed, 25 Aug 2021 08:35:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240904AbhHYPK1 (ORCPT + 99 others); Wed, 25 Aug 2021 11:10:27 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:43813 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240864AbhHYPK0 (ORCPT ); Wed, 25 Aug 2021 11:10:26 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 17PF9MnV029505 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Aug 2021 11:09:23 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 6834A15C3DBB; Wed, 25 Aug 2021 11:09:22 -0400 (EDT) Date: Wed, 25 Aug 2021 11:09:22 -0400 From: "Theodore Ts'o" To: Alex Sierra Cc: akpm@linux-foundation.org, Felix.Kuehling@amd.com, linux-mm@kvack.org, rcampbell@nvidia.com, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, hch@lst.de, jgg@nvidia.com, jglisse@redhat.com Subject: Re: [PATCH v1 01/14] ext4/xfs: add page refcount helper Message-ID: References: <20210825034828.12927-1-alex.sierra@amd.com> <20210825034828.12927-2-alex.sierra@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210825034828.12927-2-alex.sierra@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Aug 24, 2021 at 10:48:15PM -0500, Alex Sierra wrote: > From: Ralph Campbell > > There are several places where ZONE_DEVICE struct pages assume a reference > count == 1 means the page is idle and free. Instead of open coding this, > add a helper function to hide this detail. > > Signed-off-by: Ralph Campbell > Signed-off-by: Alex Sierra > Reviewed-by: Christoph Hellwig Acked-by: Theodore Ts'o