Deleted Added
full compact
inode.h (221128) inode.h (221166)
1/*-
2 * Copyright (c) 1982, 1989, 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.

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

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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 * @(#)inode.h 8.9 (Berkeley) 5/14/95
1/*-
2 * Copyright (c) 1982, 1989, 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.

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

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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 * @(#)inode.h 8.9 (Berkeley) 5/14/95
35 * $FreeBSD: head/sys/fs/ext2fs/inode.h 221128 2011-04-27 18:25:35Z jhb $
35 * $FreeBSD: head/sys/fs/ext2fs/inode.h 221166 2011-04-28 14:27:17Z jhb $
36 */
37
38#ifndef _FS_EXT2FS_INODE_H_
39#define _FS_EXT2FS_INODE_H_
40
41#include <sys/lock.h>
42#include <sys/queue.h>
43

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

153 int in_off; /* Offset in buffer. */
154 int in_exists; /* Flag if the block exists. */
155};
156
157/* Convert between inode pointers and vnode pointers. */
158#define VTOI(vp) ((struct inode *)(vp)->v_data)
159#define ITOV(ip) ((ip)->i_vnode)
160
36 */
37
38#ifndef _FS_EXT2FS_INODE_H_
39#define _FS_EXT2FS_INODE_H_
40
41#include <sys/lock.h>
42#include <sys/queue.h>
43

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

153 int in_off; /* Offset in buffer. */
154 int in_exists; /* Flag if the block exists. */
155};
156
157/* Convert between inode pointers and vnode pointers. */
158#define VTOI(vp) ((struct inode *)(vp)->v_data)
159#define ITOV(ip) ((ip)->i_vnode)
160
161/* Check whether the MNTK_ASYNC flag has been set for a mount point */
162#define DOINGASYNC(vp) ((vp)->v_mount->mnt_kern_flag & MNTK_ASYNC)
163
161/* This overlays the fid structure (see mount.h). */
162struct ufid {
163 uint16_t ufid_len; /* Length of structure. */
164 uint16_t ufid_pad; /* Force 32-bit alignment. */
165 ino_t ufid_ino; /* File number (ino). */
166 int32_t ufid_gen; /* Generation number. */
167};
168#endif /* _KERNEL */
169
170#endif /* !_FS_EXT2FS_INODE_H_ */
164/* This overlays the fid structure (see mount.h). */
165struct ufid {
166 uint16_t ufid_len; /* Length of structure. */
167 uint16_t ufid_pad; /* Force 32-bit alignment. */
168 ino_t ufid_ino; /* File number (ino). */
169 int32_t ufid_gen; /* Generation number. */
170};
171#endif /* _KERNEL */
172
173#endif /* !_FS_EXT2FS_INODE_H_ */