summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2005-11-02 05:12:28 +0100
committerNathan Scott <nathans@sgi.com>2005-11-02 05:12:28 +0100
commit2b3b6d07f760c61ec0a5e5174d3511abc044b8ea (patch)
tree83533c20d12035504337466e4298300434e350d4 /fs/xfs
parent[XFS] Remove old, broken nolog-mode code - noone plans to ever fix it. (diff)
downloadlinux-2b3b6d07f760c61ec0a5e5174d3511abc044b8ea.tar.xz
linux-2b3b6d07f760c61ec0a5e5174d3511abc044b8ea.zip
[XFS] Remove an unhelpful ifdef, the comment above the routine explains
the purpose well enough here. SGI-PV: 944821 SGI-Modid: xfs-linux:xfs-kern:24214a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_da_btree.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c
index c352d0633c31..6098aff7bd5c 100644
--- a/fs/xfs/xfs_da_btree.c
+++ b/fs/xfs/xfs_da_btree.c
@@ -1592,15 +1592,6 @@ xfs_da_hashname(const uchar_t *name, int namelen)
{
xfs_dahash_t hash;
-#ifdef SLOWVERSION
- /*
- * This is the old one-byte-at-a-time version.
- */
- for (hash = 0; namelen > 0; namelen--)
- hash = *name++ ^ rol32(hash, 7);
-
- return(hash);
-#else
/*
* Do four characters at a time as long as we can.
*/
@@ -1619,12 +1610,9 @@ xfs_da_hashname(const uchar_t *name, int namelen)
return (name[0] << 7) ^ (name[1] << 0) ^ rol32(hash, 7 * 2);
case 1:
return (name[0] << 0) ^ rol32(hash, 7 * 1);
- case 0:
+ default: /* case 0: */
return hash;
}
- /* NOTREACHED */
-#endif
- return 0; /* keep gcc happy */
}
/*