From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC453C433FE for ; Mon, 7 Feb 2022 19:35:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 16A356B0078; Mon, 7 Feb 2022 14:35:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 11A866B007B; Mon, 7 Feb 2022 14:35:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F241C6B007D; Mon, 7 Feb 2022 14:35:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0085.hostedemail.com [216.40.44.85]) by kanga.kvack.org (Postfix) with ESMTP id E62066B0078 for ; Mon, 7 Feb 2022 14:35:10 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 9FF6493D70 for ; Mon, 7 Feb 2022 19:35:10 +0000 (UTC) X-FDA: 79116987180.20.CCACE44 Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by imf07.hostedemail.com (Postfix) with ESMTP id 3A44640009 for ; Mon, 7 Feb 2022 19:35:10 +0000 (UTC) Received: by mail-qv1-f53.google.com with SMTP id o5so4606392qvm.3 for ; Mon, 07 Feb 2022 11:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rboH21WjTo7Zpin6WU8ENnQ0jpp7u5mio4o8y61h1qA=; b=VXh06X+F+pn59Qpun2TvClz1m9HjYoHgaKOI4lztMUBuiGjL99BTi+BawyYvV0b0yn 9cSLWqxROo0MXIKlUdGoc9EE7z86T+5wHR+ArNTi5/pxBOI4IWPMYAGwHGhxndX7GpTZ fSLPo9Dt2nuunse7tKeQTFKIcNt0CE4F9KzzI4ti/AgzATLEA1o9kXR4ml55Lqmm3Yhc wbAAtoduBxENkPGmrIt8sbv6drZp6l+PHJ57vTSVfC3pA1NN7u0WuhjPEL0YmplkLBQR SW4HkKGx0mKB2zSYzcqNdqN99/smutm6o5outMhJEioQPVTN6gdzMAHSMaOhfZa5HAKv HEcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rboH21WjTo7Zpin6WU8ENnQ0jpp7u5mio4o8y61h1qA=; b=VGwb9aZqB1dlz9D0IV/U89vWXZqDhDHsW8k8soT8+3SLfglEJy0fGLlkBudIxjgQg9 VCy2NGBtKK3/PnI3HlVM6NUGtOdR+MnC43QSRjaX59DTYp/npIHyh4p4BiH5W+hmExI5 kHNELT4f5G4uXpJxZ88sxy4UeQ4e+n3zzfQBJp8qE8+SkNSJrc61YCOM3wMd5l7lOiUV CkWXP3eeUHw8SGg0UnihgIHyGg8o8Rft+RrrSdSGEBIRV+KYkc1YHj+6o9jgXIwd0dpV iEtrBpBBZ5TcnVvlPxDk0ELfOlfgjak18F/LVV9yXiOy4LWsVkufevaka8/1MH007Yt0 P24w== X-Gm-Message-State: AOAM530X1KB4ph2ukxa1Z4CltIfX4/RBTHNpIlP1UuxRTDU3nX4YwTyz 3g9L0GJ25+Y1IUYEp/1sL0LF+g== X-Google-Smtp-Source: ABdhPJwMTfVdQUHipluh+Ohvh/JxuUZnOnGCSsmXZVjjmoMxCtKJINJPPq28Adoz05obvbxhEw7l+Q== X-Received: by 2002:ad4:5942:: with SMTP id eo2mr803626qvb.7.1644262509546; Mon, 07 Feb 2022 11:35:09 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id bj24sm5684465qkb.115.2022.02.07.11.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 11:35:09 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1nH9n2-000I62-Fa; Mon, 07 Feb 2022 15:35:08 -0400 Date: Mon, 7 Feb 2022 15:35:08 -0400 From: Jason Gunthorpe To: Christoph Hellwig Cc: Andrew Morton , Dan Williams , Felix Kuehling , Alex Deucher , Christian =?utf-8?B?S8O2bmln?= , "Pan, Xinhui" , Ben Skeggs , Karol Herbst , Lyude Paul , Alistair Popple , Logan Gunthorpe , Ralph Campbell , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, nvdimm@lists.linux.dev, linux-mm@kvack.org Subject: Re: [PATCH 6/8] mm: don't include in Message-ID: <20220207193508.GG49147@ziepe.ca> References: <20220207063249.1833066-1-hch@lst.de> <20220207063249.1833066-7-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220207063249.1833066-7-hch@lst.de> X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 3A44640009 X-Stat-Signature: z1gtioqpby5imeg7hpyj86i9a88derqx Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=ziepe.ca header.s=google header.b=VXh06X+F; dmarc=none; spf=pass (imf07.hostedemail.com: domain of jgg@ziepe.ca designates 209.85.219.53 as permitted sender) smtp.mailfrom=jgg@ziepe.ca X-Rspam-User: nil X-HE-Tag: 1644262510-313798 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Feb 07, 2022 at 07:32:47AM +0100, Christoph Hellwig wrote: > Move the check for the actual pgmap types that need the free at refcount > one behavior into the out of line helper, and thus avoid the need to > pull memremap.h into mm.h. > > Signed-off-by: Christoph Hellwig > --- > arch/arm64/mm/mmu.c | 1 + > drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 1 + > drivers/gpu/drm/drm_cache.c | 2 +- > drivers/gpu/drm/nouveau/nouveau_dmem.c | 1 + > drivers/gpu/drm/nouveau/nouveau_svm.c | 1 + > drivers/infiniband/core/rw.c | 1 + > drivers/nvdimm/pmem.h | 1 + > drivers/nvme/host/pci.c | 1 + > drivers/nvme/target/io-cmd-bdev.c | 1 + > fs/fuse/virtio_fs.c | 1 + > include/linux/memremap.h | 18 ++++++++++++++++++ > include/linux/mm.h | 20 -------------------- > lib/test_hmm.c | 1 + > mm/memremap.c | 6 +++++- > 14 files changed, 34 insertions(+), 22 deletions(-) Reviewed-by: Jason Gunthorpe Jason