patch-2.3.27 linux/fs/ufs/super.c
Next file: linux/fs/ufs/truncate.c
Previous file: linux/fs/ufs/inode.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Nov 11 10:07:21 1999
- Orig file:
v2.3.26/linux/fs/ufs/super.c
- Orig date:
Tue Aug 31 17:29:14 1999
diff -u --recursive --new-file v2.3.26/linux/fs/ufs/super.c linux/fs/ufs/super.c
@@ -328,7 +328,7 @@
* on the device.
*/
size = uspi->s_cssize;
- blks = howmany(size, uspi->s_fsize);
+ blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift;
base = space = kmalloc(size, GFP_KERNEL);
if (!base)
goto failed;
@@ -405,7 +405,7 @@
uspi = sb->u.ufs_sb.s_uspi;
size = uspi->s_cssize;
- blks = howmany(size, uspi->s_fsize);
+ blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift;
base = space = (char*) sb->u.ufs_sb.s_csp[0];
for (i = 0; i < blks; i += uspi->s_fpb) {
size = uspi->s_bsize;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)