freebsd-dev/sys/gnu/fs/xfs/FreeBSD/xfs_node.h
Craig Rodrigues 93d9c69ff4 Initial import of read-only support for SGI's XFS filesystem.
Contributed by:		XFS for FreeBSD project
2005-12-12 01:04:32 +00:00

17 lines
339 B
C

#ifndef __XFS_NODE_H__
#define __XFS_NODE_H__
/*
* Save one allocation on FreeBSD and always allocate both inode and
* xfs_vnode struct as a single memory block.
*/
struct xfs_node
{
struct xfs_inode n_inode;
struct xfs_vnode n_vnode;
};
#define XFS_CAST_IP2VP(ip) (&((struct xfs_node *)(ip))->n_vnode)
#endif /* __XFS_NODE_H__ */