diff options
author | dg <dg@FreeBSD.org> | 1995-08-07 08:16:32 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-08-07 08:16:32 +0000 |
commit | 20100f1812e9eb78758c4c9fb8c6fc6e1c08ab76 (patch) | |
tree | 28ed28ceb213b716dad6d5254d4fea55e6998f2e /sys/ufs/ffs/ffs_alloc.c | |
parent | fad46e4f97a35f12dc96b526b7d14f3ed00e7e26 (diff) | |
download | FreeBSD-src-20100f1812e9eb78758c4c9fb8c6fc6e1c08ab76.zip FreeBSD-src-20100f1812e9eb78758c4c9fb8c6fc6e1c08ab76.tar.gz |
Use bdwrite() rather than brelse(). The cylinder group bitmap modification
is not preserved otherwise.
Note that this is a no-op in FreeBSD, however, as we have doreallocblks
disabled.
Submitted by: Kirk McKusick
Diffstat (limited to 'sys/ufs/ffs/ffs_alloc.c')
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index d91c557..f5b9edc 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.13 1995/05/11 19:26:48 rgrimes Exp $ + * $Id: ffs_alloc.c,v 1.14 1995/05/30 08:14:57 rgrimes Exp $ */ #include <sys/param.h> @@ -1078,7 +1078,7 @@ ffs_clusteralloc(ip, cg, bpref, len) for (i = 0; i < len; i += fs->fs_frag) if (ffs_alloccgblk(fs, cgp, bno + i) != bno + i) panic("ffs_clusteralloc: lost block"); - brelse(bp); + bdwrite(bp); return (bno); fail: |