[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090406091348.GA18464@ports.donpac.ru>
Date: Mon, 6 Apr 2009 13:13:48 +0400
From: Andrey Panin <pazke@...pac.ru>
To: Izik Eidus <ieidus@...hat.com>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org, linux-mm@...ck.org, avi@...hat.com,
aarcange@...hat.com, chrisw@...hat.com, mtosatti@...hat.com,
hugh@...itas.com, kamezawa.hiroyu@...fujitsu.com
Subject: Re: [PATCH 4/4] add ksm kernel shared memory driver.
On 094, 04 04, 2009 at 05:35:22PM +0300, Izik Eidus wrote:
<SNIP>
> +static inline u32 calc_checksum(struct page *page)
> +{
> + u32 checksum;
> + void *addr = kmap_atomic(page, KM_USER0);
> + checksum = jhash(addr, PAGE_SIZE, 17);
Why jhash2() is not used here ? It's faster and leads to smaller code size.
> + kunmap_atomic(addr, KM_USER0);
> + return checksum;
> +}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists