Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288531
b: refs/heads/master
c: 6d7d1a0
h: refs/heads/master
i:
  288529: ccbcacd
  288527: 19f01ef
v: v3
  • Loading branch information
Linus Torvalds committed Mar 19, 2012
1 parent 46c4f66 commit bd79303
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c16fa4f2ad19908a47c63d8fa436a1178438c7e7
refs/heads/master: 6d7d1a0dc735ea8412769edae7154885021107a9
6 changes: 3 additions & 3 deletions trunk/fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ static unsigned int d_hash_shift __read_mostly;
static struct hlist_bl_head *dentry_hashtable __read_mostly;

static inline struct hlist_bl_head *d_hash(const struct dentry *parent,
unsigned long hash)
unsigned int hash)
{
hash += ((unsigned long) parent ^ GOLDEN_RATIO_PRIME) / L1_CACHE_BYTES;
hash = hash ^ ((hash ^ GOLDEN_RATIO_PRIME) >> D_HASHBITS);
hash += (unsigned long) parent / L1_CACHE_BYTES;
hash = hash + (hash >> D_HASHBITS);
return dentry_hashtable + (hash & D_HASHMASK);
}

Expand Down

0 comments on commit bd79303

Please sign in to comment.