linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch: typo in fs/super.c
@ 2001-09-09 18:38 Roman Zippel
  0 siblings, 0 replies; only message in thread
From: Roman Zippel @ 2001-09-09 18:38 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Alan Cox, linux-kernel

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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-09-09 18:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-09 18:38 Patch: typo in fs/super.c Roman Zippel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).