US 12,271,323 B2
Electronic device and method for performing garbage collection
Sungjong Seo, Suwon-si (KR); Yeongjin Gil, Suwon-si (KR); Hyeongjun Kim, Suwon-si (KR); and Woojoong Lee, Suwon-si (KR)
Assigned to SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed by SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed on May 23, 2023, as Appl. No. 18/201,072.
Application 18/201,072 is a continuation of application No. PCT/KR2021/018282, filed on Dec. 3, 2021.
Claims priority of application No. 10-2020-0168751 (KR), filed on Dec. 4, 2020.
Prior Publication US 2023/0297522 A1, Sep. 21, 2023
Int. Cl. G06F 13/16 (2006.01); G06F 12/02 (2006.01); G06F 13/40 (2006.01)
CPC G06F 13/1673 (2013.01) [G06F 12/0253 (2013.01); G06F 13/4068 (2013.01)] 13 Claims
OG exemplary drawing
 
1. An electronic device comprising:
a storage device comprising a plurality of segments configured to store data;
a buffer memory configured to store segment attributes corresponding to the plurality of segments, respectively; and
at least one processor electrically connected to the storage device and the buffer memory,
wherein the at least one processor is configured to:
determine, based on two or more parameters related to a data requested to be written, a data attribute;
store the data requested to be written in a segment of the plurality of segments, the segment of the plurality of segments being corresponding to the data attribute among the plurality of segments;
store, in the buffer memory, a segment attribute of the segment, the segment attribute in the buffer memory being determined based on the data attribute in the buffer memory;
update the data attribute, based on at least a data modification time of the data requested to be written; and
update the segment attribute, based on the updated data attribute, and
wherein the two or more parameters comprise an extension name of the data requested to be written and a path name of the data requested to be written.