| CPC G06F 12/12 (2013.01) [G06F 12/1009 (2013.01)] | 14 Claims |

|
1. A method of handling trim commands in a flash memory, comprising:
receiving a trim command;
modifying logical-to-physical (L2P) address mapping entries of a L2P address mapping table according to the trim command;
storing trim information of the trim command into one of data blocks of the flash memory without saving the modified L2P address mapping entries to the flash memory after modifying the L2P address mapping entries according to the trim command; and
returning a finish notification to a host device which issues the trim command after storing the trim information into the flash memory.
|