From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754477AbdGJPRo (ORCPT ); Mon, 10 Jul 2017 11:17:44 -0400 Received: from lhrrgout.huawei.com ([194.213.3.17]:31662 "EHLO lhrrgout.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754159AbdGJPRm (ORCPT ); Mon, 10 Jul 2017 11:17:42 -0400 Subject: Re: [PATCH 1/3] Protectable memory support To: Jerome Glisse CC: , , , , , , , , , , , , References: <20170705134628.3803-1-igor.stoppa@huawei.com> <20170705134628.3803-2-igor.stoppa@huawei.com> <20170706162742.GA2919@redhat.com> <1665fd00-5908-2399-577d-1972c7d1c63b@huawei.com> <20170707184843.GA3113@redhat.com> From: Igor Stoppa Message-ID: <774d9fc1-4caf-a6c9-3693-a90b5b954645@huawei.com> Date: Mon, 10 Jul 2017 18:15:53 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170707184843.GA3113@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.122.225.51] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.59639A6B.023C,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: e70084a0c3803df0aa21face5ed33cc3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/17 21:48, Jerome Glisse wrote: > I believe there is enough unuse field that for vmalloc pages that > you should find one you can use. Just add some documentation in > mm_types.h so people are aware of alternate use for the field you > are using. I ended up using page->private and the corresponding bit. Because page-private is an opaque field, specifically reserved for the allocator, I think it should not be necessary to modify mm_types.h The reworked patch is here: https://marc.info/?l=linux-mm&m=149969928920772&w=2 -- thanks, igor