X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fnamei.c;h=f7c4393f853533da6a7f4fb459896e596345b131;hb=3672f3f2159e90132bf827791f6960e396c81c02;hp=6ac16a37ded29dea1d9d1335626540ab50c4ffab;hpb=4f80c6c1825a91cecf3b3bd19c824e768d98fe48;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/namei.c b/fs/namei.c index 6ac16a37ded2..f7c4393f8535 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include "internal.h" @@ -1647,8 +1648,7 @@ static inline int can_lookup(struct inode *inode) static inline unsigned int fold_hash(unsigned long hash) { - hash += hash >> (8*sizeof(int)); - return hash; + return hash_64(hash, 32); } #else /* 32-bit case */