Deleted Added
full compact
ufsmount.h (207141) ufsmount.h (207736)
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)ufsmount.h 8.6 (Berkeley) 3/30/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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)ufsmount.h 8.6 (Berkeley) 3/30/95
30 * $FreeBSD: head/sys/ufs/ufs/ufsmount.h 207141 2010-04-24 07:05:35Z jeff $
30 * $FreeBSD: head/sys/ufs/ufs/ufsmount.h 207736 2010-05-07 00:41:12Z mckusick $
31 */
32
33#ifndef _UFS_UFS_UFSMOUNT_H_
34#define _UFS_UFS_UFSMOUNT_H_
35
36#include <sys/buf.h> /* XXX For struct workhead. */
37
38/*

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

124#define UFS1 1
125#define UFS2 2
126
127/*
128 * Flags describing the state of quotas.
129 */
130#define QTF_OPENING 0x01 /* Q_QUOTAON in progress */
131#define QTF_CLOSING 0x02 /* Q_QUOTAOFF in progress */
31 */
32
33#ifndef _UFS_UFS_UFSMOUNT_H_
34#define _UFS_UFS_UFSMOUNT_H_
35
36#include <sys/buf.h> /* XXX For struct workhead. */
37
38/*

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

124#define UFS1 1
125#define UFS2 2
126
127/*
128 * Flags describing the state of quotas.
129 */
130#define QTF_OPENING 0x01 /* Q_QUOTAON in progress */
131#define QTF_CLOSING 0x02 /* Q_QUOTAOFF in progress */
132#define QTF_64BIT 0x04 /* 64-bit quota file */
132
133/* Convert mount ptr to ufsmount ptr. */
134#define VFSTOUFS(mp) ((struct ufsmount *)((mp)->mnt_data))
135#define UFSTOVFS(ump) (ump)->um_mountp
136
137/*
138 * Macros to access filesystem parameters in the ufsmount structure.
139 * Used by ufs_bmap.
140 */
141#define MNINDIR(ump) ((ump)->um_nindir)
142#define blkptrtodb(ump, b) ((b) << (ump)->um_bptrtodb)
143#define is_sequential(ump, a, b) ((b) == (a) + ump->um_seqinc)
144#endif /* _KERNEL */
145
146#endif
133
134/* Convert mount ptr to ufsmount ptr. */
135#define VFSTOUFS(mp) ((struct ufsmount *)((mp)->mnt_data))
136#define UFSTOVFS(ump) (ump)->um_mountp
137
138/*
139 * Macros to access filesystem parameters in the ufsmount structure.
140 * Used by ufs_bmap.
141 */
142#define MNINDIR(ump) ((ump)->um_nindir)
143#define blkptrtodb(ump, b) ((b) << (ump)->um_bptrtodb)
144#define is_sequential(ump, a, b) ((b) == (a) + ump->um_seqinc)
145#endif /* _KERNEL */
146
147#endif