lkml.org 
[lkml]   [1998]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: new dentry feature in 2.1.78
Date
In article <199801101824.MAA10013@duracef.shout.net>,
Michael Elizabeth Chastain <mec@shout.net> wrote:
>
>Well, you would have to do something about this bit of code:
>
> /* include/linux/pagemap.h */
> static inline unsigned long _page_hashfn(struct inode * inode, unsigned long offset)
> {
> #define i (((unsigned long) inode)/(sizeof(struct inode) & ~ (sizeof(struct inode) - 1)))

So, ten points to the person who can guess what the hell the above does ;)

(Hint: the calculation is not actually strictly necessary, it only tries
to aim for a better hash)

Linus

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.030 / U:1.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site