CPC G06F 3/0659 (2013.01) [G06F 3/0604 (2013.01); G06F 12/0253 (2013.01); G06F 3/0679 (2013.01)] | 20 Claims |
1. A data storage device, comprising:
a non-volatile memory to store data;
a second memory to store a logical-to-physical (L2P) table and a lookaside table; and
a controller coupled to the non-volatile memory and the second memory and configured to:
in response to a defragmentation host command having a source logical address and a destination logical address, update the lookaside table with a table entry having the source logical address in a source logical address field and the destination logical address in a destination logical address field;
logically link the table entry of the lookaside table and a corresponding entry of the L2P table;
access the lookaside table and the L2P table to control a memory operation on the data in the non-volatile memory, the memory operation being for a corresponding logical address; and
determine whether the corresponding logical address is in the destination logical address field of the table entry.
|