Deleted Added
full compact
ext2_bmap.c (51483) ext2_bmap.c (51797)
1/*
2 * Copyright (c) 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95
1/*
2 * Copyright (c) 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95
39 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_bmap.c 51483 1999-09-20 21:14:43Z phk $
39 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_bmap.c 51797 1999-09-29 20:05:33Z phk $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/buf.h>
45#include <sys/proc.h>
46#include <sys/vnode.h>
47#include <sys/mount.h>

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

128 if (runp) {
129 *runp = 0;
130 }
131
132 if (runb) {
133 *runb = 0;
134 }
135
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/buf.h>
45#include <sys/proc.h>
46#include <sys/vnode.h>
47#include <sys/mount.h>

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

128 if (runp) {
129 *runp = 0;
130 }
131
132 if (runb) {
133 *runb = 0;
134 }
135
136 vp->v_maxio = devvp->v_maxio;
137 maxrun = vp->v_maxio / mp->mnt_stat.f_iosize - 1;
136 maxrun = mp->mnt_iosize_max / mp->mnt_stat.f_iosize - 1;
138
139 xap = ap == NULL ? a : ap;
140 if (!nump)
141 nump = &num;
142 error = ufs_getlbns(vp, bn, xap, nump);
143 if (error)
144 return (error);
145

--- 176 unchanged lines hidden ---
137
138 xap = ap == NULL ? a : ap;
139 if (!nump)
140 nump = &num;
141 error = ufs_getlbns(vp, bn, xap, nump);
142 if (error)
143 return (error);
144

--- 176 unchanged lines hidden ---