Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp95091pxu; Tue, 6 Oct 2020 20:13:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRzrvb8vIDae7fgDK8dzfkS4gTykVs8gHB+A3eIWyt+OoacNYGH8KFQfa9d0Nq8kjPaSWZ X-Received: by 2002:a17:906:4902:: with SMTP id b2mr1210486ejq.208.1602040411699; Tue, 06 Oct 2020 20:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602040411; cv=none; d=google.com; s=arc-20160816; b=W0PWUTb2cT0P7I8LDLMRUdeIUD7CqATqqOPdiEUOkaGZFGPVShlBqxtFG/z8QUAN4Q zY8fBKH9V5Nm+QYdy3+3hLq2A46mRGlA9JPTDu8GJ2ISfimTpvjohh4CV64s7c9R4Cmu +IEtYNE/PHKIkkhLeeBbHulhC5jsXHuILlwFDx6aDnIukrgEnbgdaT70K1ICxiJIeuMV CVGLR5PctbSAjbme2ea2zkvAuzahv9qssNxJSy+y4BWlRopoJa5B+xWc9YwhKZ/XrqMD nB31aiQ2RzgmU/pd8f8vRltsz6Hw88MK+g/I+0SXPQMkFdGf4fNfAfqeORHbPge/LM3o 3DlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=afZ2ku0615X/vbgIsq8uZABQa+HrZmef3/cMOPPeXPE=; b=RvmfUxc89rGzmdKpeSfNdjBO5f6VoTpdj7+taCtfDZ2ArEAj6LXkbXD2GB86Oy5PLa wDFzKGEnYPmBKqHJYppPKvB8eKSp2HK6wSjx2Qc2L0T90+UMJEvctdk1eVCYIG8TvsHl Ly5aP7mzpAW0TJxxXh7tGvc7EW8UAk//kCi9oNxm6Eb8hubsveAPbfFBMaNi+5pCOCdA xLZXmHE/Y+xg6/TITZbmwZlVHaIsUtaEh4euDNvp0hYJFzobBY+uFfdi0JybOqr5osAq VtX3qzXicG6lqLZwAJLldpeTM5NE3JKpYj4n7xE+jVc22ar0gEDAIASTxkjjlTVjNAh7 HACA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=EPjdVqDe; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 33si465927edr.606.2020.10.06.20.12.59; Tue, 06 Oct 2020 20:13:31 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=EPjdVqDe; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbgJGCkS (ORCPT + 99 others); Tue, 6 Oct 2020 22:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbgJGCkS (ORCPT ); Tue, 6 Oct 2020 22:40:18 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE031C0613D2 for ; Tue, 6 Oct 2020 19:40:17 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id ce10so760347ejc.5 for ; Tue, 06 Oct 2020 19:40:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=afZ2ku0615X/vbgIsq8uZABQa+HrZmef3/cMOPPeXPE=; b=EPjdVqDeTinUn3xle7QkZRs1c1I777r6WwVNCzmQvuelLMEIhN7D3byY1DbMWiHRAd QgHw7nunbi78JiFNVYPaj+vzDaQToh84mycymDqg79odab44O2bFpy0hTFRZMk6Gq88h gdm22jg2FmT9PYcFKiksCpHH97YYjHNLfkRJqB+XyuOtAK7X6n9Ol7Qc3aWxyX/ubcf1 1Dj3nT3ueZ1gSrXVBd01SuIcMxMF+W8KjeuouHZbfkVWg3QUD53z+H8ypZQCYHGiMbYk lCoLazlQUecuVDEtHUfRDwSsCvcaF59aNbsh9HWw6NNgsgGSQloXWj+DnfN5l7npN3En PmkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=afZ2ku0615X/vbgIsq8uZABQa+HrZmef3/cMOPPeXPE=; b=PTEYsRk4LDRRCs6aQyVTm7+bVrQZ+ENciEQX1RJaIFPbfvWtpRZ4+UR6El8iS3tiA4 YQTg7vd7any0OYeUNsltpqlMD5C+O3S2Rt+saiB6OsG9skOxPx4v9MAFA1iZM2LuCXEI +kYDa4Zu0ksCj7F8p1xEmyRdT6CBAYFhy4QJ8qTjoafPjli1nIEe2ACzYofLSQnN/MKY 2WKO+POMDSvPnoH8B45tY4+Vf8e7IFYW4WVqG40REctLP6nrFdrFYz2aix23nddcQ3sw b5qhlOozWxXgTUEh7u5Hdo9fkJvTwWs9oMZr3jD97uljR2lq7vlAPtjacvt1E+c/DYFx wgcQ== X-Gm-Message-State: AOAM533rB+u5TFcj3JcgYQ/xPKUmKQz5Zx2pH6OVZx8N5MbiMyp/GFDF rb052swdMJzCcrJayllgXxhtFz1ERLkdFojENVNZkiUBVhs= X-Received: by 2002:a17:906:1a0b:: with SMTP id i11mr1116582ejf.472.1602038416463; Tue, 06 Oct 2020 19:40:16 -0700 (PDT) MIME-Version: 1.0 References: <20201006230930.3908-1-rcampbell@nvidia.com> In-Reply-To: <20201006230930.3908-1-rcampbell@nvidia.com> From: Dan Williams Date: Tue, 6 Oct 2020 19:40:05 -0700 Message-ID: Subject: Re: [PATCH] ext4/xfs: add page refcount helper To: Ralph Campbell Cc: Linux MM , linux-xfs , linux-fsdevel , linux-nvdimm , Linux Kernel Mailing List , linux-ext4 , Matthew Wilcox , Jan Kara , Alexander Viro , "Theodore Ts'o" , Christoph Hellwig , Andreas Dilger , "Darrick J. Wong" , Andrew Morton Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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.