From: Jan Kara Subject: Re: [PATCH v4 1/5] mm: add mkwrite param to vm_insert_mixed() Date: Mon, 24 Jul 2017 17:59:06 +0200 Message-ID: <20170724155906.GR652@quack2.suse.cz> References: <20170721223956.29485-1-ross.zwisler@linux.intel.com> <20170721223956.29485-2-ross.zwisler@linux.intel.com> <20170724112530.GI652@quack2.suse.cz> <20170724152357.GB1639@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: Jan Kara , linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, David Airlie , Dave Chinner , dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, Andreas Dilger , Patrik Jakobsson , Christoph Hellwig , linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Joonyoung Shim , "Darrick J. Wong" , Tomi Valkeinen , Kyungmin Park , Krzysztof Kozlowski , Ingo Molnar , linux-ext4-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Matthew Wilcox , linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Steven Rostedt , Inki Dae , linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org, Alexander Viro , Dan Williams , linux-arm-kernel-IAPFreCvJWMP3drIcvDWNA@public.gmane.org To: Ross Zwisler Return-path: Content-Disposition: inline In-Reply-To: <20170724152357.GB1639-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: freedreno-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Freedreno" List-Id: linux-ext4.vger.kernel.org T24gTW9uIDI0LTA3LTE3IDA5OjIzOjU3LCBSb3NzIFp3aXNsZXIgd3JvdGU6Cj4gT24gTW9uLCBK dWwgMjQsIDIwMTcgYXQgMDE6MjU6MzBQTSArMD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