]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: stop munging hash
authorSage Weil <sage@newdream.net>
Thu, 12 Jun 2008 22:46:11 +0000 (15:46 -0700)
committerSage Weil <sage@newdream.net>
Thu, 12 Jun 2008 22:46:11 +0000 (15:46 -0700)
src/mds/CInode.cc

index 6e275b7205d0f06d624f733e914b256958321c07..2377f09229fd84eea7c94d31831e59a74a55454a 100644 (file)
@@ -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<CDir*>& ls)