Patent ID: 8984213
Filing Date: 2015-03-17
Classification: G06F

Abstract:
1. A method for managing a flash memory, the flash memory comprising a plurality of blocks, each block comprising a plurality of sets of a first page and a second page configured in pair, the method comprising: selecting at least one cache block from the plurality of blocks; writing a set of target data into the first pages of the at least one cache block; when a write-back condition is met, writing the set of target data from the first pages of the at least one cache block to a target block; determining whether at least one cache block corresponding to the target block is in the flash memory prior to selecting at least one cache block from the plurality of blocks; selecting the at least one cache block in the step of selecting at least one cache block from the plurality of blocks when a determination result of the step of determining whether at least one cache block corresponding to the target block is in the flash memory is affirmative; and selecting at least one cache block from unused blocks for the target block in the step of selecting at least one cache block from the plurality of blocks when the determination result of the step of determining whether at least one cache block corresponding to the target block is in the flash memory is negative.