summaryrefslogtreecommitdiffstats
path: root/fs/fat/fatent.c
diff options
context:
space:
mode:
authorOGAWA Hirofumi2008-11-06 21:53:49 +0100
committerLinus Torvalds2008-11-07 00:41:20 +0100
commitd3dfa8228f87ab9960ab8b4718013d68e3c25a43 (patch)
tree236784875a5c735688e644fe8412649e5fdbfcd7 /fs/fat/fatent.c
parentfat: cleanup fat_parse_long() error handling (diff)
downloadkernel-qcow2-linux-d3dfa8228f87ab9960ab8b4718013d68e3c25a43.tar.gz
kernel-qcow2-linux-d3dfa8228f87ab9960ab8b4718013d68e3c25a43.tar.xz
kernel-qcow2-linux-d3dfa8228f87ab9960ab8b4718013d68e3c25a43.zip
fat: improve fat_hash()
fat_hash() is using the algorithm known as bad. Instead of it, this uses hash_32(). The following is the summary of test. old hash: hash func (1000 times): 33489 cycles total inodes in hash table: 70926 largest bucket contains: 696 smallest bucket contains: 54 new hash: hash func (1000 times): 33129 cycles total inodes in hash table: 70926 largest bucket contains: 315 smallest bucket contains: 236 Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fat/fatent.c')
0 files changed, 0 insertions, 0 deletions