Re: [PATCH] xvmalloc: total_pages can be ulong

From: Nitin Gupta
Date: Thu Dec 29 2011 - 08:58:33 EST


Hi Ajeet,

On 12/28/2011 12:50 AM, Ajeet Yadav wrote:

> From 4763266cb0077d1082d4a1ef941448e9b4eb55ca Mon Sep 17 00:00:00 2001
> From: Ajeet Yadav <ajeet.yadav.77@xxxxxxxxx>
> Date: Wed, 28 Dec 2011 11:08:34 +0530
> Subject: [PATCH] xvmalloc: total_pages can be ulong
>
> total_pages is u64, its too large value considering
> that its in page unit on both 32-bit and 64-bit system
> , therefore make it ulong.
>
> Having done that we can use normal ++ and -- operators
> instead of stat_inc() and stat_dec(), therefore
> remove these functions as well.
>


I'm soon going to send patches which replace xvmalloc with a new allocator.

Thanks,
Nitin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/