Deleted Added
full compact
ffs_alloc.c (42374) ffs_alloc.c (46568)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ffs_alloc.c 8.18 (Berkeley) 5/26/95
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ffs_alloc.c 8.18 (Berkeley) 5/26/95
34 * $Id: ffs_alloc.c,v 1.55 1999/01/06 17:04:33 bde Exp $
34 * $Id: ffs_alloc.c,v 1.56 1999/01/07 16:14:16 bde Exp $
35 */
36
37#include "opt_quota.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/buf.h>
42#include <sys/proc.h>

--- 457 unchanged lines hidden (view full) ---

500 bdwrite(sbp);
501 else
502 bwrite(sbp);
503 } else {
504 ip->i_flag |= IN_CHANGE | IN_UPDATE;
505 if (!doasyncfree)
506 UFS_UPDATE(vp, 1);
507 }
35 */
36
37#include "opt_quota.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/buf.h>
42#include <sys/proc.h>

--- 457 unchanged lines hidden (view full) ---

500 bdwrite(sbp);
501 else
502 bwrite(sbp);
503 } else {
504 ip->i_flag |= IN_CHANGE | IN_UPDATE;
505 if (!doasyncfree)
506 UFS_UPDATE(vp, 1);
507 }
508 if (ssize < len)
508 if (ssize < len) {
509 if (doasyncfree)
510 bdwrite(ebp);
511 else
512 bwrite(ebp);
509 if (doasyncfree)
510 bdwrite(ebp);
511 else
512 bwrite(ebp);
513 }
513 /*
514 * Last, free the old blocks and assign the new blocks to the buffers.
515 */
516#ifdef DEBUG
517 if (prtrealloc)
518 printf("\n\tnew:");
519#endif
520 for (blkno = newblk, i = 0; i < len; i++, blkno += fs->fs_frag) {

--- 1158 unchanged lines hidden ---
514 /*
515 * Last, free the old blocks and assign the new blocks to the buffers.
516 */
517#ifdef DEBUG
518 if (prtrealloc)
519 printf("\n\tnew:");
520#endif
521 for (blkno = newblk, i = 0; i < len; i++, blkno += fs->fs_frag) {

--- 1158 unchanged lines hidden ---