2010/1/14 Ulf Lilleengen <[email protected]>: > Author: lulf > Date: Thu Jan 14 14:30:54 2010 > New Revision: 202283 > URL: http://svn.freebsd.org/changeset/base/202283 >
Sorry for my late comment. Please, dedup those comments below (came from p4 165599). thanks! > /* > * Allocate a block in the file system. > - * > - * this takes the framework from ffs_alloc. To implement the > - * actual allocation, it calls ext2_new_block, the ported version > - * of the same Linux routine. > * > - * we note that this is always called in connection with ext2_blkpref > + * A preference may be optionally specified. If a preference is given > + * the following hierarchy is used to allocate a block: > + * 1) allocate the requested block. > + * 2) allocate a rotationally optimal block in the same cylinder. > + * 3) allocate a block in the same cylinder group. > + * 4) quadradically rehash into other cylinder groups, until an > + * available block is located. > + * If no block preference is given the following hierarchy is used > + * to allocate a block: > + * 1) allocate a block in the cylinder group that contains the > + * inode for the file. > + * 2) quadradically rehash into other cylinder groups, until an > + * available block is located. > * > - * preallocation is done as Linux does it > + * A preference may be optionally specified. If a preference is given > + * the following hierarchy is used to allocate a block: > + * 1) allocate the requested block. > + * 2) allocate a rotationally optimal block in the same cylinder. > + * 3) allocate a block in the same cylinder group. > + * 4) quadradically rehash into other cylinder groups, until an > + * available block is located. > + * If no block preference is given the following hierarchy is used > + * to allocate a block: > + * 1) allocate a block in the cylinder group that contains the > + * inode for the file. > + * 2) quadradically rehash into other cylinder groups, until an > + * available block is located. > */ -- wbr, pluknet _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[email protected]"
