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