Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4782714pxb; Thu, 14 Oct 2021 11:51:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO5+lUoEjA+epbNfkvf3DTdlk8ilhOGZ3Jlx/1q1QDBi/gBRanYmfR//d+QEO9XNHkTHBD X-Received: by 2002:a17:90a:e10:: with SMTP id v16mr22703394pje.86.1634237496132; Thu, 14 Oct 2021 11:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634237496; cv=none; d=google.com; s=arc-20160816; b=qyrlMfHeY2C3RT9k4Ij2z3DzHBZ5hA1UB2s6sacAQRccS/wkpA5zKT04rl82SSwhMi ljj9tZqlCI17prHB5t+tXrle+ifmkw3C0fFyi+mvlSJBqZTx2W2Yz/mLlMnXLwVW1Bf8 gOvnn/XFSnYIfctSa2nRKUd6HoPSz1HnIR0VQEyBTQK9WNlFHmoTxaZD99fpVlNs79S0 k2K1hHvzzGuI1GnGKKAllvRLIQtN9di3+I4H30Iw9lzjcR6OQzk90PV70QGTsJRNJx5D YqdpHqpBYAKZgXwrn0s1zjPRMlWH26EBlFEDfBu40Y7dpH7c2dyyMxsFONlZg8GhFNgP A8Qg== 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=fxcLVRG2Jku0ajx1R51YzWOEmjfFWOgHA52RS+phND0=; b=iov/FGJVXcoYD6Y9zN+Yin2NFPu6Cls3up/pO6o0KSPasW410/JjjMTfivZwhxcNhM nyzjolGRMhdWeaYl93voUbTXnu06+2bJq5ofyJcsUoljmBGET2lq6d3Ao5cj0i2OoRTX 96uA5Qhri+0OI79yC76U0dGuXeUrK0aPo/6PBUxhwOF8zZQ/+LsqvUodqnGaSHy5Pn7s hGFKMOokKBGM2Qm4SKuiIAxNGso+vnkmKY5j/bPtFNBZdWAe0oZ6+q7uvefrw79bhA3h lkWiCHmHMpezPhpZpMvA248DFS/vuem2k3cAeKka9XfYLecNRgGzOTWzhzyF/bHy60Ig NnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hJChu81H; 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 w7si5200498pfu.268.2021.10.14.11.51.22; Thu, 14 Oct 2021 11:51:36 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hJChu81H; 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 S232972AbhJNQoD (ORCPT + 99 others); Thu, 14 Oct 2021 12:44:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231839AbhJNQn7 (ORCPT ); Thu, 14 Oct 2021 12:43:59 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A34C061570; Thu, 14 Oct 2021 09:41:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=fxcLVRG2Jku0ajx1R51YzWOEmjfFWOgHA52RS+phND0=; b=hJChu81HMFnOk2mOnqyhd+aZtv 3RzV8zPkoJkUHzUTz5GgiZ+listhRDQekfOBkR90UtQ2T1RzDS9xEDu+Xg8X6MpGuaPXdTpJENrP+ N9lL4PeVE+DrKuffpedBb6bGoElR+WBOPDTHCqD/0FdDaj2E3SOaJdIB8LZ0jOe1/lg1Wx2fVq29b /pGZtjz7ji+oGbkLPezf8ivP5RJ20y0B2SqhEYs3dFDfEWnNSUQoHSWexPFklVi1xKgZUBUzD4jvp Z0D9PwJQldNvfJyOvWouJg6sE1rfP4OM+KHdUwffPvVoYHqOKxa84aqjmiMUJprcaZXS2lBIKYutb cHcfxkiA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mb3mJ-008SzI-UQ; Thu, 14 Oct 2021 16:40:35 +0000 Date: Thu, 14 Oct 2021 17:40:23 +0100 From: Matthew Wilcox 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, apopple@nvidia.com Subject: Re: [PATCH v1 1/2] ext4/xfs: add page refcount helper Message-ID: References: <20211014153928.16805-1-alex.sierra@amd.com> <20211014153928.16805-2-alex.sierra@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211014153928.16805-2-alex.sierra@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Oct 14, 2021 at 10:39:27AM -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 > Acked-by: Darrick J. Wong Reviewed-by: Matthew Wilcox (Oracle)