i=nikita.danilov
i=h.huang
use unsigned long index for radix tree lookup
{
}
-static inline __u32 hash_x_index(__u32 value)
+static inline unsigned long hash_x_index(unsigned long value)
{
- return ((__u32)~0) - value;
+ return ~0UL - value;
}
#endif
return rc;
}
-static cfs_page_t *llu_dir_read_page(struct inode *ino, __u32 hash,
- int exact, struct ll_dir_chain *chain)
+static cfs_page_t *llu_dir_read_page(struct inode *ino, __u64 hash,
+ int exact, struct ll_dir_chain *chain)
{
cfs_page_t *page;
int rc;
* radix_tree_gang_lookup() can be used to find a page with starting
* hash _smaller_ than one we are looking for.
*/
- unsigned long offset = hash_x_index((__u32)hash);
+ unsigned long offset = hash_x_index((unsigned long)hash);
struct page *page;
int found;
}
}
- page = read_cache_page(mapping, hash_x_index((__u32)hash),
+ page = read_cache_page(mapping, hash_x_index((unsigned long)hash),
(filler_t*)mapping->a_ops->readpage, NULL);
if (IS_ERR(page))
GOTO(out_unlock, page);