From: Sage Weil Date: Thu, 12 Jun 2008 22:46:11 +0000 (-0700) Subject: mds: stop munging hash X-Git-Tag: v0.3~126 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d9153d56f4d9e64511039a6dbcfddcc1663001f2;p=ceph.git mds: stop munging hash --- diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 6e275b7205d0..2377f09229fd 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -176,7 +176,7 @@ frag_t CInode::pick_dirfrag(const string& dn) return frag_t(); // avoid the string hash if we can. __u32 h = ceph_full_name_hash(dn.data(), dn.length()); - return dirfragtree[h*h]; + return dirfragtree[h]; } void CInode::get_dirfrags_under(frag_t fg, list& ls)