Deleted Added
full compact
ufs_bmap.c (239359) ufs_bmap.c (283735)
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.

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95
35 */
36
37#include <sys/cdefs.h>
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.

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/ufs/ufs/ufs_bmap.c 239359 2012-08-17 17:45:27Z mjg $");
38__FBSDID("$FreeBSD: head/sys/ufs/ufs/ufs_bmap.c 283735 2015-05-29 13:24:17Z kib $");
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/bio.h>
43#include <sys/buf.h>
44#include <sys/proc.h>
45#include <sys/vnode.h>
46#include <sys/mount.h>

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

109 struct buf *nbp;
110 int *runp;
111 int *runb;
112{
113 struct inode *ip;
114 struct buf *bp;
115 struct ufsmount *ump;
116 struct mount *mp;
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/bio.h>
43#include <sys/buf.h>
44#include <sys/proc.h>
45#include <sys/vnode.h>
46#include <sys/mount.h>

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

109 struct buf *nbp;
110 int *runp;
111 int *runb;
112{
113 struct inode *ip;
114 struct buf *bp;
115 struct ufsmount *ump;
116 struct mount *mp;
117 struct vnode *devvp;
118 struct indir a[NIADDR+1], *ap;
119 ufs2_daddr_t daddr;
120 ufs_lbn_t metalbn;
121 int error, num, maxrun = 0;
122 int *nump;
123
124 ap = NULL;
125 ip = VTOI(vp);
126 mp = vp->v_mount;
127 ump = VFSTOUFS(mp);
117 struct indir a[NIADDR+1], *ap;
118 ufs2_daddr_t daddr;
119 ufs_lbn_t metalbn;
120 int error, num, maxrun = 0;
121 int *nump;
122
123 ap = NULL;
124 ip = VTOI(vp);
125 mp = vp->v_mount;
126 ump = VFSTOUFS(mp);
128 devvp = ump->um_devvp;
129
130 if (runp) {
131 maxrun = mp->mnt_iosize_max / mp->mnt_stat.f_iosize - 1;
132 *runp = 0;
133 }
134
135 if (runb) {
136 *runb = 0;

--- 242 unchanged lines hidden ---
127
128 if (runp) {
129 maxrun = mp->mnt_iosize_max / mp->mnt_stat.f_iosize - 1;
130 *runp = 0;
131 }
132
133 if (runb) {
134 *runb = 0;

--- 242 unchanged lines hidden ---