Date: Mon, 21 Oct 2002 18:14:25 -0700 (PDT) From: Kirk McKusick <mckusick@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ffs ffs_balloc.c Message-ID: <200210220114.g9M1EPJ0050234@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mckusick 2002/10/21 18:14:25 PDT Modified files: sys/ufs/ffs ffs_balloc.c Log: This update is a performance improvement when allocating blocks on a full filesystem. Previously, if the allocation failed, we had to fsync the file before rolling back any partial allocation of indirect blocks. Most block allocation requests only need to allocate a single data block and if that allocation fails, there is nothing to unroll. So, before doing the fsync, we check to see if any rollback will really be necessary. If none is necessary, then we simply return. This update eliminates the flurry of disk activity that got triggered whenever a filesystem would run out of space. Sponsored by: DARPA & NAI Labs. Revision Changes Path 1.39 +12 -0 src/sys/ufs/ffs/ffs_balloc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210220114.g9M1EPJ0050234>