Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1140212ybb; Wed, 8 Apr 2020 17:42:44 -0700 (PDT) X-Google-Smtp-Source: APiQypLRpVXyKRqkDHO3NQqoLLfM/qP/nSmCrqPEm97E5iyY1OUBA7oyVPuzTZB4qnGW2CaCYJ7B X-Received: by 2002:aca:574a:: with SMTP id l71mr4523020oib.148.1586392964665; Wed, 08 Apr 2020 17:42:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586392964; cv=none; d=google.com; s=arc-20160816; b=KXiVSeVH9RvKCzrvHjW9xG+a+zaDOW2vFnnYpJWEkybtbCPGgLhbpCp86CJ8diGK2I 0J89lWpwq2WmAab4un2/v98+avCzmJONW4P+Dvs4iavwsFgxIGZ57mYTEF7Puq4bVFFS 7qqHOQm4fY7UZCfuPi4eS60iXDdqs/e2oFPbVtMgxxryk9maK+mJUjQcpvq09XJkborM RsWJy0fWqtk5mKgGmVmZ8cRd4smukatRic2vcibcIEdkdNpU60mJBYPmACck/9yBZ6rC 55RGuF5K+tEZvrIO2nwsdEubuCun9NW1el6HWp02iYfa8he6oxWEwbrqc5xiYp2Jcxnd u2PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/6EYCRlfa2umBwyf6HMqnS88iYA4EIXadLKaqqSMGXc=; b=noFNOdpdHfL2BMBXL+GFUvSy7VveouBcsgNe9lFNYdYrjlYIo/RaYXIVQrcIEwBkOg HU4a3/W2AlLLP5WThkOzJEBAwZl3SdrQ2JLZ8AWIzcMAw8OEz9A4fpuzY9qiqNKdcHrP /AjoOKDxuaFm6055Xnav4CbqjcAeB/sQcohzkE+ugK2dJUwZXs6XLiEoZW7TMAZ2WSnM lgB6H8k4b0vRdqu3DkngtIKaId4F4snaQRtFN5/bTKqaT29e6MabMZnDjKtGYBzPS4z0 yPa8b7UEwFfm4zljsDItfltmdXZwtrJxp3JwY5SVWgFt+qJgIDiLNC8RAgzF+obyMIeC 45gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=Nw9PSYl5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 26si2629892oiz.107.2020.04.08.17.42.30; Wed, 08 Apr 2020 17:42:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=Nw9PSYl5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726616AbgDIAlz (ORCPT + 99 others); Wed, 8 Apr 2020 20:41:55 -0400 Received: from sonic308-37.consmr.mail.ne1.yahoo.com ([66.163.187.60]:33502 "EHLO sonic308-37.consmr.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbgDIAlx (ORCPT ); Wed, 8 Apr 2020 20:41:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1586392912; bh=/6EYCRlfa2umBwyf6HMqnS88iYA4EIXadLKaqqSMGXc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=Nw9PSYl5kPo55rK57kdK+1rouIyZmFH49XmlmNnt+EPGCmzv5/R562708lCkK9bcS1996WR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NdxApHaOp9BBa0mK8Hd4Y8_sLLzgFE_OX._p_ww8OgQCS _PZw5TJANZTRxfmtlnIT9WY8nJxFEz0ZzkRbyJrD7lBRVCuL2qRMMrbnVCU.d3atpGGNT71.FMTl XJp9kOjDwdiPhEHaNTf0wy9.286eHx9hDHZx13ycI4lCw.BNZVla9tTflJZSkBR622oDAvju0pYi chnjA_f0d_Rs3Y.w_0UWDDtsiqrp7Nd.ENOvnjBk3WtBBjbeqzYHxInpU0ICw.akO5xUiF4HXGRD NGu7bFyqgIPHiVSYVkpfC.PnR3fZmrfgYy1Ktc5D_y5Xh2Z7vFADl5LC6uRiCqJ9Y4yLuHo1ATrn PxNppKa486Nn86yT5d.pKQ3q49VQAxNEB7EGZ_QmK0uyT9X6oF2qpuwBBPhXWKUMiK3EbPuATGVw L.4MdTecfHCHslUWJtwrtw2v46CslPDJY3TtzPBEF3b6hKOBHSxZ.8CqTxF3S2_xcA64udxpFdja 9c_vKNU82cTswpLxDeBimIz._J7Xaum1i6dZEwCbc.uspehQ3L04kL45bX0fhpi7dDoUJat5aE3S p_Fl8AHbSq3P.bkBJGmoklW4vRdsCXSUz4v5SYoPxJ86d1eVDsQ0qrpylWpfgRvkXgRw467FBrzC _ECRk3ijYTNyDsC7idxPty4i4XJSa9KM2uH5RWvaV.R8phY0hHU.lO54DG8mygB9TxdZscMBwbtP JqFlYvAh9BGSO_QyxpGrs Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Thu, 9 Apr 2020 00:41:52 +0000 Received: by smtp412.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 07bc1f76d2033b5244ea2e327c66bf87; Thu, 09 Apr 2020 00:39:51 +0000 (UTC) Date: Thu, 9 Apr 2020 08:39:35 +0800 From: Gao Xiang To: Christoph Hellwig Cc: Andrew Morton , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , x86@kernel.org, David Airlie , Daniel Vetter , Laura Abbott , Sumit Semwal , Sakari Ailus , Minchan Kim , Nitin Gupta , Robin Murphy , Christophe Leroy , Peter Zijlstra , linuxppc-dev@lists.ozlabs.org, linux-hyperv@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 17/28] mm: remove the prot argument from vm_map_ram Message-ID: <20200409003931.GA8418@hsiangkao-HP-ZHAN-66-Pro-G1> References: <20200408115926.1467567-1-hch@lst.de> <20200408115926.1467567-18-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408115926.1467567-18-hch@lst.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Mailer: WebService/1.1.15620 hermes Apache-HttpAsyncClient/4.1.4 (Java/11.0.6) Content-Length: 545 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 08, 2020 at 01:59:15PM +0200, Christoph Hellwig wrote: > This is always GFP_KERNEL - for long term mappings with other properties > vmap should be used. > > Signed-off-by: Christoph Hellwig > --- > drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c | 2 +- > drivers/media/common/videobuf2/videobuf2-dma-sg.c | 3 +-- > drivers/media/common/videobuf2/videobuf2-vmalloc.c | 3 +-- > fs/erofs/decompressor.c | 2 +- For EROFS part, Acked-by: Gao Xiang Thanks, Gao Xiang