/* This function convert UBIFS (@UBIFS_COMPR_FL, etc) to ioctl flags (@FS_COMPR_FL, etc).  */
static int ubifs2ioctl(int ubifs_flags)
/* This function convert UBIFS (@UBIFS_COMPR_FL, etc) to ioctl flags (@FS_COMPR_FL, etc).  */
static int ubifs2ioctl(int ubifs_flags)
{
	int ioctl_flags = 0;
	if (ubifs_flags & UBIFS_COMPR_FL)
		ioctl_flags |= FS_COMPR_FL;
	if (ubifs_flags & UBIFS_SYNC_FL)
		ioctl_flags |= FS_SYNC_FL;
	if (ubifs_flags & UBIFS_APPEND_FL)
		ioctl_flags |= FS_APPEND_FL;
	if (ubifs_flags & UBIFS_IMMUTABLE_FL)
		ioctl_flags |= FS_IMMUTABLE_FL;
	if (ubifs_flags & UBIFS_DIRSYNC_FL)
		ioctl_flags |= FS_DIRSYNC_FL;
	return ioctl_flags;
}