diff options
author | dyson <dyson@FreeBSD.org> | 1995-11-19 19:55:26 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1995-11-19 19:55:26 +0000 |
commit | 13fde74b24ca1d0d51449b38e301ae77a023addf (patch) | |
tree | 2d241795f5841948bacb4a84d579c3c00ee9e2ca /sys/ufs/ffs/ffs_alloc.c | |
parent | a2735c1b93653d38bd183bc152959dd3c26ff907 (diff) | |
download | FreeBSD-src-13fde74b24ca1d0d51449b38e301ae77a023addf.zip FreeBSD-src-13fde74b24ca1d0d51449b38e301ae77a023addf.tar.gz |
General fixes to the vfs clustring code:
1) Make cluster buffer list be a non-malloced chain. This eliminates
yet another 'evil' M_WAITOK and generally cleans up the code.
2) Fix write clustering for ext2fs. It was just broken. Also, ffs
clustering had an efficiency problem that more bawrites were happening
than should have been.
3) Make changes to buf.h to support the above, plus remove b_pfcent
at the request of David Greenman.
Note that the reallocblocks code is disabled pending rewrite for
the cluster buffer list changes.
Diffstat (limited to 'sys/ufs/ffs/ffs_alloc.c')
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index e9b5e54..a308f60 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_alloc.c 8.8 (Berkeley) 2/21/94 - * $Id: ffs_alloc.c,v 1.17 1995/09/08 17:16:32 davidg Exp $ + * $Id: ffs_alloc.c,v 1.18 1995/11/14 09:40:04 phk Exp $ */ #include <sys/param.h> @@ -336,6 +336,9 @@ ffs_reallocblks(ap) struct cluster_save *a_buflist; } */ *ap; { +#if 1 + return (ENOSPC); +#else struct fs *fs; struct inode *ip; struct vnode *vp; @@ -476,6 +479,7 @@ fail: if (sbap != &ip->i_db[0]) brelse(sbp); return (ENOSPC); +#endif } /* |