/* dt_type - return file type @mistat: mistat structure  */
static int dt_type(struct p9_wstat *mistat)
/* dt_type - return file type @mistat: mistat structure  */
static int dt_type(struct p9_wstat *mistat)
{
	unsigned long perm = mistat->mode;
	int rettype = DT_REG;
	if (perm & P9_DMDIR)
		rettype = DT_DIR;
	if (perm & P9_DMSYMLINK)
		rettype = DT_LNK;
	return rettype;
}