摘要 |
Embodiments of the present invention provide a controller, a flash memory apparatus, and a method for writing data into a flash memory apparatus. The controller is applied in a storage system, where the storage system includes the controller and the flash memory apparatus, the flash memory apparatus includes a flash chip, the flash chip includes a block, the block includes multiple pages, at least one of the multiple pages is a damaged page, and the controller includes a communications interface and a processor; the communications interface is configured to communicate with the flash memory apparatus; and the processor is configured to: receive capacity information of the block that is sent by the flash memory apparatus; obtain an effective capacity of the block according to the capacity information of the block, where the effective capacity of the block does not include a capacity of the damaged page; read target data, where a size of the target data is the effective capacity of the block of the block; and send the target data to the flash memory apparatus, which can improve block utilization and save storage space of an SSD. |