patch-2.3.27 linux/fs/ufs/balloc.c

Next file: linux/fs/ufs/dir.c
Previous file: linux/fs/udf/udfdecl.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.26/linux/fs/ufs/balloc.c linux/fs/ufs/balloc.c
@@ -676,7 +676,7 @@
 	else
 		start = ucpi->c_frotor >> 3;
 		
-	length = howmany(uspi->s_fpg, 8) - start;
+	length = ((uspi->s_fpg + 7) >> 3) - start;
 	location = ubh_scanc(UCPI_UBH, ucpi->c_freeoff + start, length,
 		(uspi->s_fpb == 8) ? ufs_fragtable_8fpb : ufs_fragtable_other,
 		1 << (count - 1 + (uspi->s_fpb & 7))); 

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