US 12,147,704 B2
Management of host file-system defragmentation in a data storage device
Judah Gamliel Hahn, Ofra (IL); Ramanathan Muthiah, Bangalore (IN); Bala Siva Kumar Narala, Kakinada (IN); and Narendhiran Chinnaanangur Ravimohan, Bangalore (IN)
Assigned to Sandisk Technologies, Inc., Milpitas, CA (US)
Filed by Western Digital Technologies, Inc., San Jose, CA (US)
Filed on Jul. 15, 2022, as Appl. No. 17/865,641.
Prior Publication US 2024/0020060 A1, Jan. 18, 2024
Int. Cl. G06F 3/06 (2006.01); G06F 12/02 (2006.01)
CPC G06F 3/0659 (2013.01) [G06F 3/0604 (2013.01); G06F 12/0253 (2013.01); G06F 3/0679 (2013.01)] 20 Claims
OG exemplary drawing
 
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.