indirect blocks so that you can allocate "maxcontig" blocks before paying
a rot-delay.
SCCS-vsn: sys/ufs/ffs/ffs_alloc.c 7.39
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ffs_alloc.c 7.38 (Berkeley) %G%
+ * @(#)ffs_alloc.c 7.39 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
* requested rotationally delayed by fs_rotdelay milliseconds.
*/
nextblk = bap[indx - 1] + fs->fs_frag;
* requested rotationally delayed by fs_rotdelay milliseconds.
*/
nextblk = bap[indx - 1] + fs->fs_frag;
- if (indx > fs->fs_maxcontig &&
- bap[indx - fs->fs_maxcontig] + blkstofrags(fs, fs->fs_maxcontig)
- != nextblk)
+ if (indx < fs->fs_maxcontig || bap[indx - fs->fs_maxcontig] +
+ blkstofrags(fs, fs->fs_maxcontig) != nextblk)
return (nextblk);
if (fs->fs_rotdelay != 0)
/*
return (nextblk);
if (fs->fs_rotdelay != 0)
/*