patch-2.3.26 linux/fs/bfs/dir.c

Next file: linux/fs/bfs/file.c
Previous file: linux/fs/bfs/bfs_defs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.25/linux/fs/bfs/dir.c linux/fs/bfs/dir.c
@@ -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;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)