Deleted Added
full compact
ffs_subr.c (3487) ffs_subr.c (8876)
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_subr.c 8.2 (Berkeley) 9/21/93
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_subr.c 8.2 (Berkeley) 9/21/93
34 * $Id: ffs_subr.c,v 1.2 1994/08/02 07:54:22 davidg Exp $
34 * $Id: ffs_subr.c,v 1.3 1994/10/10 01:04:38 phk Exp $
35 */
36
37#include <sys/param.h>
38#include <ufs/ffs/fs.h>
39
40#ifdef KERNEL
41#include <sys/systm.h>
42#include <sys/vnode.h>

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

79 if (ap->a_res)
80 *ap->a_res = (char *)bp->b_data + blkoff(fs, ap->a_offset);
81 *ap->a_bpp = bp;
82 return (0);
83}
84#endif
85
86/*
35 */
36
37#include <sys/param.h>
38#include <ufs/ffs/fs.h>
39
40#ifdef KERNEL
41#include <sys/systm.h>
42#include <sys/vnode.h>

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

79 if (ap->a_res)
80 *ap->a_res = (char *)bp->b_data + blkoff(fs, ap->a_offset);
81 *ap->a_bpp = bp;
82 return (0);
83}
84#endif
85
86/*
87 * Update the frsum fields to reflect addition or deletion
87 * Update the frsum fields to reflect addition or deletion
88 * of some frags.
89 */
90void
91ffs_fragacct(fs, fragmap, fraglist, cnt)
92 struct fs *fs;
93 int fragmap;
94 long fraglist[];
95 int cnt;

--- 145 unchanged lines hidden ---
88 * of some frags.
89 */
90void
91ffs_fragacct(fs, fragmap, fraglist, cnt)
92 struct fs *fs;
93 int fragmap;
94 long fraglist[];
95 int cnt;

--- 145 unchanged lines hidden ---