Patent ID: 9652179
Date: 2017-05-16
CPC Classifications: G06F

Claim:
1. A data managing method for a memory system, the memory system comprises a memory controller, a first memory block and a second memory block, and the data managing method comprise: storing a first data to a top of the first memory block in a top-down fashion; and storing a first metadata corresponding to the first data to a bottom of the first memory block in a bottom-up fashion; wherein the first data forms a first data area, the first metadata forms a first metadata area and a first continuous space is formed between a bottom of the first data area and a top of the first metadata area, when a size of a second data and a size of a second metadata corresponding to the second data are bigger than a size of the first continuous space: merging the first memory block and the second memory block to generate a third memory block; moving the first data and at least one data of the second memory block to a top of the third memory block in the top-down fashion; moving the first metadata corresponding to the first data and at least one metadata corresponding to the at least one data of the second memory block to a bottom of the third memory block in the bottom-up fashion.