DATA WRITING METHOD AND STORAGE CONTROLLER
First Claim
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.
2 Assignments
0 Petitions
Accused Products
Abstract
A data writing method is provided. The method includes writing a first write data into a first physical sub-unit in a storage device according to a first write command; recording a first meta data corresponding to the first write data into the storage device; writing a second write data into a second physical sub-unit in the storage device; recording a second meta data corresponding to the second write data into the storage device. A second write identification code of the second meta data is set to be different from a first write identification code of the first meta data if the second physical unit is closely adjacent to the first physical unit and the second write data is written according to the second write command; and whether the second write data is valid or invalid is determined according to the second meta data if a special event occurs.
2 Citations
10 Claims
-
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 Dependent Claims (2, 3, 4, 5)
-
-
6. A storage controller, configured to control a storage device having a rewritable non-volatile memory module, the storage controller comprising:
-
a connection interface circuit, configured to couple to a host system; a memory interface control circuit, configured to couple to the rewritable non-volatile memory module, wherein the rewritable non-volatile memory module has a plurality of physical units, and each physical unit among the physical units has a plurality of physical sub-units; a processor, coupled to the connection interface circuit and the memory interface control circuit; and a data management circuit, coupled to the processor, the connection interface circuit and the memory interface control circuit, wherein the processor writes a first write data into a first physical sub-unit in the rewritable non-volatile memory module according to a first write command, wherein the data management circuit records a first meta data corresponding to the first write data and the processor instructs the memory interface control circuit to write 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 write identification code is either a first value or a second value, and the first value is different from the second value, wherein the processor instructs the memory interface control circuit to write a second write data into a second physical sub-unit in the rewritable non-volatile memory module, wherein the data management circuit records a second meta data corresponding to the second write data and the processor instructs the memory interface control circuit to write 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 data management circuit sets the second write identification code of the second meta data 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 data management circuit sets the second write identification code of the second meta data 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, wherein the processor determines 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 Dependent Claims (7, 8, 9, 10)
-
Specification