From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753330AbZHXSlJ (ORCPT ); Mon, 24 Aug 2009 14:41:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752790AbZHXSlG (ORCPT ); Mon, 24 Aug 2009 14:41:06 -0400 Received: from mail-px0-f196.google.com ([209.85.216.196]:58583 "EHLO mail-px0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753224AbZHXSlE (ORCPT ); Mon, 24 Aug 2009 14:41:04 -0400 Message-ID: <4A92DEA2.7050000@vflare.org> Date: Tue, 25 Aug 2009 00:10:34 +0530 From: Nitin Gupta Reply-To: ngupta@vflare.org User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: Pekka Enberg CC: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mm-cc@laptop.org Subject: Re: [PATCH 1/4] compcache: xvmalloc memory allocator References: <200908241007.47910.ngupta@vflare.org> <84144f020908241033l4af09e7h9caac47d8d9b7841@mail.gmail.com> <4A92D35F.50604@vflare.org> <84144f020908241108o4d9d6e38wba7806977b8b6073@mail.gmail.com> <4A92D7D4.7020807@vflare.org> <84144f020908241127vc8dafa4l340d000097cf5548@mail.gmail.com> In-Reply-To: <84144f020908241127vc8dafa4l340d000097cf5548@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/24/2009 11:57 PM, Pekka Enberg wrote: > On Mon, Aug 24, 2009 at 9:11 PM, Nitin Gupta wrote: >>> Is the name rzmalloc() too similar to kzalloc() which stands for >>> zeroing allocator, though? I think I suggested >>> ramzswap_alloc()/ramzswap_free() in the past to avoid confusion. I'd >>> rather go with that if we can't come up with a nice generic name that >>> stands for alloc_part_of_page_including_highmem(). >> >> rzs_malloc()/rzs_free() ? > > I am not sure what we gain from the shorter and more cryptic "rzs" > prefix compared to "ramzswap" but yeah, it's less likely to be > confused with kzalloc() so I'm okay with that. > Perhaps, I'm just too bad with naming :) xvmalloc -> ramzswap_alloc() (compiled with ramzswap instead of as a separate module). BTW, [rzs]control is the name of userspace utility to send ioctl()s to ramzswap. Somehow, I am happy with rzscontrol name atleast. Thanks, Nitin From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id ED1F76B0118 for ; Tue, 25 Aug 2009 23:27:02 -0400 (EDT) Received: by pxi15 with SMTP id 15so6495253pxi.23 for ; Tue, 25 Aug 2009 20:27:11 -0700 (PDT) Message-ID: <4A92DEA2.7050000@vflare.org> Date: Tue, 25 Aug 2009 00:10:34 +0530 From: Nitin Gupta Reply-To: ngupta@vflare.org MIME-Version: 1.0 Subject: Re: [PATCH 1/4] compcache: xvmalloc memory allocator References: <200908241007.47910.ngupta@vflare.org> <84144f020908241033l4af09e7h9caac47d8d9b7841@mail.gmail.com> <4A92D35F.50604@vflare.org> <84144f020908241108o4d9d6e38wba7806977b8b6073@mail.gmail.com> <4A92D7D4.7020807@vflare.org> <84144f020908241127vc8dafa4l340d000097cf5548@mail.gmail.com> In-Reply-To: <84144f020908241127vc8dafa4l340d000097cf5548@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Pekka Enberg Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mm-cc@laptop.org List-ID: On 08/24/2009 11:57 PM, Pekka Enberg wrote: > On Mon, Aug 24, 2009 at 9:11 PM, Nitin Gupta wrote: >>> Is the name rzmalloc() too similar to kzalloc() which stands for >>> zeroing allocator, though? I think I suggested >>> ramzswap_alloc()/ramzswap_free() in the past to avoid confusion. I'd >>> rather go with that if we can't come up with a nice generic name that >>> stands for alloc_part_of_page_including_highmem(). >> >> rzs_malloc()/rzs_free() ? > > I am not sure what we gain from the shorter and more cryptic "rzs" > prefix compared to "ramzswap" but yeah, it's less likely to be > confused with kzalloc() so I'm okay with that. > Perhaps, I'm just too bad with naming :) xvmalloc -> ramzswap_alloc() (compiled with ramzswap instead of as a separate module). BTW, [rzs]control is the name of userspace utility to send ioctl()s to ramzswap. Somehow, I am happy with rzscontrol name atleast. Thanks, Nitin -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org