Date: Tue, 1 Feb 2011 18:21:45 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/fs/ext2fs ext2_alloc.c Message-ID: <201102011822.p11IM1k7039760@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2011-02-01 18:21:45 UTC
FreeBSD src repository
Modified files:
sys/fs/ext2fs ext2_alloc.c
Log:
SVN rev 218175 on 2011-02-01 18:21:45Z by jhb
- Set the next_alloc fields for an i-node after allocating a new block
so that future allocations start with most recently allocated block
rather than the beginning of the filesystem.
- Fix ext2_alloccg() to properly scan for 8 block chunks that are not
aligned on 8-bit boundaries. Previously this was causing new blocks
to be allocated in a highly fragmented fashion (block 0 of a file at
lbn N, block 1 at lbn N + 8, block 2 at lbn N + 16, etc.).
- Cosmetic tweaks to the currently-disabled fancy realloc sysctls.
PR: kern/153584
Discussed with: bde
Tested by: Pedro F. Giffuni giffunip at yahoo, Zheng Liu (lz)
Revision Changes Path
1.4 +58 -14 src/sys/fs/ext2fs/ext2_alloc.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102011822.p11IM1k7039760>
