/* Description: vxfs_transmod returns a Linux mode_t for a given VxFS inode structure.  */
static __inline__ mode_t vxfs_transmod(struct vxfs_inode_info *vip)
/* Description: vxfs_transmod returns a Linux mode_t for a given VxFS inode structure.  */
static __inline__ mode_t vxfs_transmod(struct vxfs_inode_info *vip)
{
	mode_t			ret = vip->vii_mode & ~VXFS_TYPE_MASK;
	if (VXFS_ISFIFO(vip))
		ret |= S_IFIFO;
	if (VXFS_ISCHR(vip))
		ret |= S_IFCHR;
	if (VXFS_ISDIR(vip))
		ret |= S_IFDIR;
	if (VXFS_ISBLK(vip))
		ret |= S_IFBLK;
	if (VXFS_ISLNK(vip))
		ret |= S_IFLNK;
	if (VXFS_ISREG(vip))
		ret |= S_IFREG;
	if (VXFS_ISSOC(vip))
		ret |= S_IFSOCK;
	return (ret);
}