Patch: typo in fs/super.c

From: Roman Zippel (zippel@linux-m68k.org)
Date: Sun Sep 09 2001 - 13:38:09 EST


Hi,

There is a small typo in fs/super.c which makes the mount hash quite
ineffective.

bye, Roman

diff -u -r1.1.1.15 super.c
--- fs/super.c 11 Aug 2001 14:14:59 -0000 1.1.1.15
+++ fs/super.c 9 Sep 2001 18:36:48 -0000
@@ -288,8 +288,8 @@
 {
         unsigned long tmp = ((unsigned long) mnt / L1_CACHE_BYTES);
         tmp += ((unsigned long) dentry / L1_CACHE_BYTES);
- tmp = tmp + (tmp >> hash_mask);
- return tmp & hash_bits;
+ tmp = tmp + (tmp >> hash_bits);
+ return tmp & hash_mask;
 }

 struct vfsmount *alloc_vfsmnt(void)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 15 2001 - 21:00:20 EST