git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Architectural Support: x86_64 (#37)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
fs
/
vfs.c
diff --git
a/lunaix-os/kernel/fs/vfs.c
b/lunaix-os/kernel/fs/vfs.c
index eb4239639e84082ff89f13effb20da6a4e00e054..d4bc56a65c3f6784ef444b0ebcc271eec79b65fc 100644
(file)
--- a/
lunaix-os/kernel/fs/vfs.c
+++ b/
lunaix-os/kernel/fs/vfs.c
@@
-116,7
+116,7
@@
__dcache_hash(struct v_dnode* parent, u32_t* hash)
// 确保低位更加随机
_hash = _hash ^ (_hash >> VFS_HASHBITS);
// 与parent的指针值做加法,来减小碰撞的可能性。
- _hash += (u32_t)
parent
;
+ _hash += (u32_t)
__ptr(parent)
;
*hash = _hash;
return &dnode_cache[_hash & VFS_HASH_MASK];
}