[PATCH] bfs

Andrzej Krzysztofowicz (ankry@green.mif.pg.gda.pl)
Tue, 2 Nov 1999 15:18:35 +0100 (CET)


Hi,
I enclose a patch that fixes problem with long long division in
gcc-2.7.2.3 (__udiv3 unresolved symbol) in bfs 2.3.25-pre1.

BTW, I think it would be nice to keep the filesystem list in fs/Config.in
in alphabetic order as it has been sorted some patches ago (by Alan ?)...

Regards
Andrzej

***********************************************************************
diff -u --recursive 2.3.25-1/fs/bfs/dir.c linux/fs/bfs/dir.c
--- 2.3.25-1/fs/bfs/dir.c Sat Oct 30 00:49:01 1999
+++ linux/fs/bfs/dir.c Fri Oct 29 23:44:15 1999
@@ -51,7 +51,7 @@

while (f->f_pos < dir->i_size) {
offset = f->f_pos & (BFS_BSIZE-1);
- block = dir->iu_sblock + f->f_pos/BFS_BSIZE;
+ block = dir->iu_sblock + (f->f_pos >> BFS_BSIZE_BITS);
bh = bread(dev, block, BFS_BSIZE);
if (!bh) {
f->f_pos += BFS_BSIZE - offset;
************************************************************************

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk

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