×

Data writing method and storage controller

  • US 9,990,152 B1
  • Filed: 01/10/2017
  • Issued: 06/05/2018
  • Est. Priority Date: 11/17/2016
  • Status: Active Grant
First Claim
Patent Images

1. A data writing method, adapted to a storage device having a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module has a plurality of physical units, each physical unit among the physical units has a plurality of physical sub-units, and the method comprises:

  • writing a first write data into a first physical sub-unit in the rewritable non-volatile memory module according to a first write command;

    recording a first meta data corresponding to the first write data and writing the first meta data into the rewritable non-volatile memory module after writing the first write data, wherein the first meta data comprises a first write identification code, a first write size and a first unit crossing flag, wherein the first write identification code is either a first value or a second value, and the first value is different from the second value;

    writing a second write data into a second physical sub-unit in the rewritable non-volatile memory module;

    recording a second meta data corresponding to the second write data and writing the second meta data into the rewritable non-volatile memory module after writing the second write data, wherein the second meta data comprises a second write identification code, a second write size and a second unit crossing flag, wherein the second write identification code of the second meta data is set to be different from the first write identification code of the first meta data if the second physical sub-unit is closely adjacent to the first physical sub-unit and the second write data is written according to a second write command different from the first write command, wherein the second write identification code of the second meta data is set to be identical to the first write identification code of the first meta data if the second write data is written according to the first write command; and

    determining whether the second write data is valid or invalid according to the second write data and the second meta data if a special event occurs.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×