--- ./kernel/ub/ub_page_bc.c.uboptm	2006-05-12 17:49:07.000000000 +0400
+++ ./kernel/ub/ub_page_bc.c	2006-05-12 19:14:44.000000000 +0400
@@ -196,8 +196,7 @@ int pb_alloc_all(struct page_beancounter
 
 static inline int pb_hash(struct user_beancounter *ub, struct page *page)
 {
-	return (((unsigned long)ub << 16) + ((unsigned long)ub >> 16) +
-		(page_to_pfn(page) >> 7)) & pb_hash_mask;
+	return (page_to_pfn(page) + (ub->ub_uid << 10)) & pb_hash_mask;
 }
 
 /* pb_lock should be held */
