[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071115010909.GA21193@gondor.apana.org.au>
Date: Thu, 15 Nov 2007 09:09:09 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Hideo AOKI <haoki@...hat.com>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
satoshi.oshima.fk@...achi.com, andi@...stfloor.org,
shemminger@...ux-foundation.org, johnpol@....mipt.ru,
yoshfuji@...ux-ipv6.org, yumiko.sugita.yf@...achi.com
Subject: Re: [PATCH 2/5] accounting unit and variable
On Wed, Nov 14, 2007 at 06:30:51PM -0500, Hideo AOKI wrote:
>
> +#define SK_DATAGRAM_MEM_QUANTUM ((unsigned int)PAGE_SIZE)
> +
> +static inline int sk_datagram_pages(int amt)
> +{
> + /* Cast to unsigned as an optimization, since amt is always
> positive. */
> + return DIV_ROUND_UP((unsigned int)amt, SK_DATAGRAM_MEM_QUANTUM);
> +}
> +
Thanks, this looks OK to me.
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists