| CPC G06F 12/0891 (2013.01) [G06F 12/023 (2013.01); G06F 12/1425 (2013.01)] | 20 Claims |

|
1. A method for operating a memory system, the memory system comprising a memory controller and a memory device, the memory controller being coupled to the memory device, the memory device having a first space and a second space, the first space having an initial size, a storage mode for the first space being a first mode, a storage mode for the second space being a second mode, a write speed of the second mode being lower than that of the first mode, the method comprising:
in response to a first space flush command for performing a flush operation that empties the first space, restoring an available size of the first space to the initial size of the first space by configuring a part of a free space of the memory device as an available space of the first space in a case where a size of the free space is greater than or equal to a first threshold, the free space of the memory device including a free space in the first space and a free space in the second space.
|