Deleted Added
full compact
ffs_inode.c (108589) ffs_inode.c (109623)
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_inode.c 8.13 (Berkeley) 4/21/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_inode.c 8.13 (Berkeley) 4/21/95
34 * $FreeBSD: head/sys/ufs/ffs/ffs_inode.c 108589 2003-01-03 06:32:15Z phk $
34 * $FreeBSD: head/sys/ufs/ffs/ffs_inode.c 109623 2003-01-21 08:56:16Z alfred $
35 */
36
37#include "opt_quota.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/mount.h>
42#include <sys/proc.h>

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

568 return (error);
569 }
570
571 if (ip->i_ump->um_fstype == UFS1)
572 bap1 = (ufs1_daddr_t *)bp->b_data;
573 else
574 bap2 = (ufs2_daddr_t *)bp->b_data;
575 if (lastbn != -1) {
35 */
36
37#include "opt_quota.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/mount.h>
42#include <sys/proc.h>

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

568 return (error);
569 }
570
571 if (ip->i_ump->um_fstype == UFS1)
572 bap1 = (ufs1_daddr_t *)bp->b_data;
573 else
574 bap2 = (ufs2_daddr_t *)bp->b_data;
575 if (lastbn != -1) {
576 MALLOC(copy, caddr_t, fs->fs_bsize, M_TEMP, M_WAITOK);
576 MALLOC(copy, caddr_t, fs->fs_bsize, M_TEMP, 0);
577 bcopy((caddr_t)bp->b_data, copy, (u_int)fs->fs_bsize);
578 for (i = last + 1; i < NINDIR(fs); i++)
579 BAP(ip, i) = 0;
580 if (DOINGASYNC(vp)) {
581 bawrite(bp);
582 } else {
583 error = bwrite(bp);
584 if (error)

--- 50 unchanged lines hidden ---
577 bcopy((caddr_t)bp->b_data, copy, (u_int)fs->fs_bsize);
578 for (i = last + 1; i < NINDIR(fs); i++)
579 BAP(ip, i) = 0;
580 if (DOINGASYNC(vp)) {
581 bawrite(bp);
582 } else {
583 error = bwrite(bp);
584 if (error)

--- 50 unchanged lines hidden ---