Patent ID: 9639475
Date: 2017-05-02
CPC Classifications: G06F

Claim:
1. A buffer memory management method for a buffer memory of a memory storage device having a rewritable non-volatile memory module, and the buffer memory management method comprising: allocating a mapping table zone in the buffer memory; dividing the mapping table zone into a first zone and a second zone, wherein each of the first zone and the second zone has a plurality of continuous buffer units; loading a plurality of logical address-physical address mapping tables from the rewritable non-volatile memory module into the first zone and the second zone, wherein each of the logical address-physical address mapping tables is temporarily stored into one of the buffer units in the first zone or one of the buffer units in the second zone; receiving a first write command from a host system, wherein the first write command instructs writing first data into a first logical address, and a first logical address-physical address mapping table to which the first logical address belongs is already temporarily stored into a first buffer unit among the buffer units in the second zone; updating the first logical address-physical address mapping table, and moving the updated first logical address-physical address mapping table into a second buffer unit among the buffer units in the first zone; after moving the updated first logical address-physical address mapping table into the second buffer unit among the buffer units in the first zone, marking the second buffer unit as a dirty status; and if all the buffer units in the first zone are marked as the dirty status, restoring the logical address-physical address mapping tables temporarily stored in all the buffer units in the first zone back to the rewritable non-volatile memory module.