Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp467792pxu; Wed, 7 Oct 2020 07:44:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwojXi0yoALuPv47yAMDof9w/BN1F1rDhp49CjEiflDi4aw/rvBBfMBLUKGx9ai+tl47p1 X-Received: by 2002:a17:906:3294:: with SMTP id 20mr3643179ejw.322.1602081844666; Wed, 07 Oct 2020 07:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602081844; cv=none; d=google.com; s=arc-20160816; b=P2m0uM/DZJVQVdHILnUnx3V7Nt0RAHzkGtH61fgXHdms50osLbhzuEfMwMZmnj5qc4 SwPCoEfToq/uQDxxQlUyjMGNBBl/XF558ppJ6ukWitklCbcVLlEbjwwO3Ta9fUF7YVZ8 kHsYwgSH0sORi572zCs5XLyVxwpPAd9XS75B6cZ0wb9547t0i+qcDcR5pYtlYcpa0CdS U2x/aruLjDDH4LDt0hZudF0lVkDLwtfRbzt40i/79T88c8QKg40F17vYNNIn+YlevPDz qJQmM894QKQ0SJ1vluqvbEamjeZ8kx7f4/D5UJ1UGKDLBozxBnYx4aH/xAFQYdRtZZBO mhCQ== 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=F0Kh8z+fDDnmNNhgGhxbfRIKHuUF+5wQ2DE0Qws+ypU=; b=buChJIYhi7U21Ib5FLlbmvL072os22JtDjRFOLJsTbHm1QJQUBC3oDPhr3liulw4gG ib6IBV075bGaJ8xTd4BiLa/69eo6bqLncDm5wYQYy4iQxBhWdMsumUlGCkmtOlXbuc0K TquYpw1z1xI3aOwCj/rgQTvLBIKQUib8taVRs1bUc7c7gsPQJl/i7gECnRrosUGlbRpW Iwv/9DRlE4AmxiGdMQK4ZWLUodsEYCqd3Gt+o9KCTIFBeWaIwHp7BcT+yrYIBsdsRfoH keJZHNnGJe6l8eJ+36nqRuTfex5lcHIb+vRcZEpLvuw/l3EY/f+ZTvS6ElIK8peWNbJD h8EA== 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 w1si1726521edf.589.2020.10.07.07.43.36; Wed, 07 Oct 2020 07:44:04 -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 S1728677AbgJGOlt (ORCPT + 99 others); Wed, 7 Oct 2020 10:41:49 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:38855 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728535AbgJGOls (ORCPT ); Wed, 7 Oct 2020 10:41:48 -0400 Received: from callcc.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 097EfEdZ005736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 7 Oct 2020 10:41:15 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 3E8A6420107; Wed, 7 Oct 2020 10:41:14 -0400 (EDT) Date: Wed, 7 Oct 2020 10:41:14 -0400 From: "Theodore Y. Ts'o" To: Dan Williams Cc: Ralph Campbell , Linux MM , linux-xfs , linux-fsdevel , linux-nvdimm , Linux Kernel Mailing List , linux-ext4 , Matthew Wilcox , Jan Kara , Alexander Viro , Christoph Hellwig , Andreas Dilger , "Darrick J. Wong" , Andrew Morton Subject: Re: [PATCH] ext4/xfs: add page refcount helper Message-ID: <20201007144114.GB235506@mit.edu> References: <20201006230930.3908-1-rcampbell@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Oct 06, 2020 at 07:40:05PM -0700, Dan Williams wrote: > On Tue, Oct 6, 2020 at 4:09 PM Ralph Campbell wrote: > > > > 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 > > Reviewed-by: Christoph Hellwig > > --- > > > > I'm resending this as a separate patch since I think it is ready to > > merge. Originally, this was part of an RFC and is unchanged from v3: > > https://lore.kernel.org/linux-mm/20201001181715.17416-1-rcampbell@nvidia.com > > > > It applies cleanly to linux-5.9.0-rc7-mm1 but doesn't really > > depend on anything, just simple merge conflicts when applied to > > other trees. > > I'll let the various maintainers decide which tree and when to merge. > > It isn't urgent since it is a clean up patch. > > Thanks Ralph, it looks good to me. Jan, or Ted care to ack? I don't > have much else pending for dax at the moment as Andrew is carrying my > dax updates for this cycle. Andrew please take this into -mm if you > get a chance. Otherwise I'll cycle back to it when some other dax > updates arrive in my queue. Acked-by: Theodore Ts'o # for fs/ext4/inode.c