patch-2.3.25 linux/fs/udf/directory.c
Next file: linux/fs/udf/file.c
Previous file: linux/fs/udf/dir.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Sat Oct 30 09:42:30 1999
-  Orig file: 
v2.3.24/linux/fs/udf/directory.c
-  Orig date: 
Tue Sep  7 12:14:07 1999
diff -u --recursive --new-file v2.3.24/linux/fs/udf/directory.c linux/fs/udf/directory.c
@@ -112,7 +112,7 @@
 
 		(*offset) ++;
 
-		if (*offset >= (elen >> dir->i_sb->s_blocksize_bits))
+		if ((*offset << dir->i_sb->s_blocksize_bits) >= elen)
 			*offset = 0;
 		else
 			*extoffset = lextoffset;
@@ -154,7 +154,7 @@
 
 		(*offset) ++;
 
-		if (*offset >= (elen >> dir->i_sb->s_blocksize_bits))
+		if ((*offset << dir->i_sb->s_blocksize_bits) >= elen)
 			*offset = 0;
 		else
 			*extoffset = lextoffset;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)