From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 02 Dec 2014 03:01:20 +0100 (CET) Received: from mail-pd0-f172.google.com ([209.85.192.172]:44839 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27007800AbaLBCBQgB0TI (ORCPT ); Tue, 2 Dec 2014 03:01:16 +0100 Received: by mail-pd0-f172.google.com with SMTP id y13so12080686pdi.31 for ; Mon, 01 Dec 2014 18:01:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=LXniFMBJHGwlCYcX5UUmKYA4EpW3dUUfIedNZZdlL28=; b=GL7aScEUu589PGy0jwkFsyRmRyCbBT2hICyycQvzryjP4DNSiUan4YoHecmDUd/dPG CLNDlbTKRJQtUB4FOqKUGdbO/JmFoCPILfZw9o0O9iouEP+OPLu4T0ed7d6ALOjtW4uL 3M7WvJeN8o00Hhj07bb6t0GOqfN4vkKq7mysWmnt20g+r+18vnneE9NsAJsUEOmyu6zK peib+Luk2sL5bDyucaFSXISQU+A9YJJsuc7rdFX+6k/J2b1UchaCmhwq3ehjejRPh+i5 qEDO9RGykRwRsMQakrY+xD0hVi7Mt76PAT5+hi4jYaXQ7AokZ5m8yn9zv01u1/+7j7/t XVvg== X-Received: by 10.70.53.35 with SMTP id y3mr15207776pdo.27.1417485670616; Mon, 01 Dec 2014 18:01:10 -0800 (PST) Received: from ShengShiZhuChengdeMacBook-Pro.local ([124.127.118.42]) by mx.google.com with ESMTPSA id vf6sm4265567pbc.73.2014.12.01.18.00.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Dec 2014 18:01:09 -0800 (PST) Message-ID: <547D1EE5.5060409@gmail.com> Date: Tue, 02 Dec 2014 10:07:33 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: James Bottomley , Carlos O'Donell CC: Geert Uytterhoeven , Max Filippov , Minchan Kim , "akpm@linux-foundation.org" , "rth@twiddle.net" , "ink@jurassic.park.msu.ru" , "mattst88@gmail.com" , Ralf Baechle , "jejb@parisc-linux.org" , "deller@gmx.de" , "chris@zankel.net" , "linux-alpha@vger.kernel.org" , "linux-mips@linux-mips.org" , "linux-parisc@vger.kernel.org" , "linux-xtensa@linux-xtensa.org" , "linux-kernel@vger.kernel.org" , Arnd Bergmann Subject: Re: [PATCH] arch: uapi: asm: mman.h: Support MADV_FREE for madvise() References: <547CD304.20407@gmail.com> <1417485331.2585.26.camel@HansenPartnership.com> In-Reply-To: <1417485331.2585.26.camel@HansenPartnership.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 44540 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: gang.chen.5i5j@gmail.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On 12/2/14 09:55, James Bottomley wrote: > On Mon, 2014-12-01 at 17:01 -0500, Carlos O'Donell wrote: >> On Mon, Dec 1, 2014 at 4:35 PM, Geert Uytterhoeven wrote: >>> On Mon, Dec 1, 2014 at 9:52 PM, Max Filippov wrote: >>>> On Mon, Dec 1, 2014 at 11:43 PM, Chen Gang wrote: >>>>> At present, kernel supports madvise(MADV_FREE), so can benefit to all >>>>> related architectures (can grep MADV_WILLNEED or MADV_REMOVE in "arch/" >>>>> to know about all related architectures). >>>> >>>> A similar patch has been posted a while ago: >>>> >>>> http://www.spinics.net/lists/linux-mm/msg81538.html >>> >>> Would it be possible to use the same number everywhere? >> >> Yes please. It's ridiculous that we still need patches like this. >> >> I proposed unifying all this two years ago, but didn't follow up. >> >> From glibc's perspective it would be simpler if we started using the >> same number everywhere. >> >> http://www.spinics.net/lists/linux-api/msg02064.html > > Please co-ordinate with Andrew then because he's intent on merging this > patch: > > http://marc.info/?l=linux-mm-commits&m=141747572930808 > For me, we can let MADV_FREE to 8 based on the Andrew's mm tree. Since it is about uapi, we need try our best to let it perfect. Thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed