# US 2023/0273876 A1 · Memory system, data storage device, user device and data management method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0273876 A1
- Document ID: US20230273876A1
- Status: Published application
- Kind: A1
- Application number: 18/314,669
- Filed: 2023-05-09
- Published: 2023-08-31
- Earliest claimed: 2010-10-29
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: HYOJIN ` JEONG; YOUNGJOON CHOI; SUNGHOON LEE; JAE-HYEON JU
- Web page: https://patentgrep.com/patent/US20230273876A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data management method of a data storage device having a data management unit different from a data management unit of a user device receives information regarding a storage area of a file to be deleted, from the user device, selects a storage area which matches with the data management unit of the data storage device, from among the storage area of the deleted file, and performs an erasing operation on the selected storage area which matches with the data management unit.

## Claims

### Claim 1

A memory device comprising:
a flash memory including a plurality of memory regions that include a first memory region and a second memory region; and
a controller configured to receive from an external device a request to delete a first file stored in the flash memory, and to perform an erase operation by a unit of memory region in response to the request to delete the first file,
wherein the first memory region includes a first sub-region that includes first data corresponding to a portion of the first file, and a second sub-region that includes second data corresponding to a portion of a second file, and
when the first sub-region of the first memory region is invalid and the second sub-region of the first memory region is valid, the erase operation is not performed on the first memory region in response to the request to delete the first file.

### Claim 2 (depends on 1)

The memory device of claim 1, wherein the second memory region includes a plurality of sub-regions,
each of the plurality of sub-regions of the second memory region includes data corresponding to the first file, and each of the plurality of sub-regions of the second memory region is invalid, and
the erase operation is performed on the second memory region in response to the request to delete the first file.

### Claim 3 (depends on 1)

The memory device of claim 1, wherein the erase operation is performed, based on a first table that contains writing statement information on each sub-region of at least one memory region of the plurality of memory regions.

### Claim 4 (depends on 1)

The memory device of claim 1, wherein the erase operation is performed on the first memory region when all of sub-regions in the first memory region are invalid.

### Claim 5 (depends on 4)

The memory device of claim 4, wherein when the erase operation on the first memory region is performed, both at least a portion of the first file and at least a portion of the second file are deleted.

### Claim 6 (depends on 1)

The memory device of claim 1, wherein the memory region is a page, and the erase operation is performed by a unit of page.

### Claim 7

A memory device comprising:
a non-volatile memory including a plurality of non-volatile memory regions that include a first non-volatile memory region and a second non-volatile memory region, each of the plurality of non-volatile memory regions including a plurality of non-volatile memory sub-regions;
a volatile memory including a plurality of volatile memory regions that include a first volatile memory region and a second volatile memory region; and
a controller configured to receive from an external device a request to write a first file stored in the volatile memory to the non-volatile memory,
wherein in response to the request to write the first file, the controller is configured to perform a write operation based on a first table that contains first information related to the volatile memory and a second table that contains second information related to the non-volatile memory.

### Claim 8 (depends on 7)

The memory device of claim 7, wherein the controller receives from the external device a request to unwrite a second file stored in the volatile memory to the non-volatile memory,
in response to the request to unwrite the second file, the controller performs an unwrite operation by a unit of non-volatile memory region, and
the unwrite operation prevents at least a portion of the second file from being written to the non-volatile memory when a flush operation is performed to write data stored in the volatile memory to the non-volatile memory.

### Claim 9 (depends on 8)

The memory device of claim 8, wherein the unwrite operation for the second file is performed based on the first table and the second table.

### Claim 10 (depends on 7)

The memory device of claim 7, wherein the first information is related to the plurality of volatile memory regions, and the second information is related to the plurality of non-volatile memory regions.

### Claim 11 (depends on 7)

The memory device of claim 7, wherein the volatile memory is a dynamic random access memory (DRAM), and the non-volatile memory is a flash memory.

### Claim 12

A memory device comprising:
a flash memory including a plurality of memory regions that include a first memory region and a second memory region; and
a controller configured to receive from an external device a request to delete a first file stored in the flash memory, and to perform an erase operation by a unit of memory region in response to the request to delete the first file,
wherein the erase operation in response to the request to delete the first file is performed to delete a first portion of the first file, and
a second portion of the first file remains in the flash memory after the erase operation in response to the request to delete the first file is performed.

### Claim 13 (depends on 12)

The memory device of claim 12, wherein the first portion of the first file is stored in the first memory region and the second portion of the first file is stored in the second memory region when the erase operation is performed in response to the request to delete the first file.

### Claim 14 (depends on 13)

The memory device of claim 13, wherein all of sub-regions in the first memory region are invalid when the erase operation is performed in response to the request to delete the first file, and
at least one sub-region in the second memory region is valid when the erase operation is performed in response to the request to delete the first file.

### Claim 15 (depends on 14)

The memory device of claim 14, wherein at least one sub-region in the second memory region stores at least a portion of a second file when the erase operation is performed in response to the request to delete the first file.

### Claim 16

A memory device comprising:
a non-volatile memory including a plurality of non-volatile memory regions that include a first non-volatile memory region and a second non-volatile memory region, each of the plurality of non-volatile memory regions including a plurality of non-volatile memory sub-regions;
a volatile memory including a first table that contains first information related to the plurality of non-volatile memory regions of the non-volatile memory; and
a controller configured to receive from an external device a request to delete a first file stored in the non-volatile memory, and to perform an erase operation in response to the request to delete the first file,
wherein in response to the request to delete the first file, the controller is configured to perform the erase operation based on the first table.

### Claim 17 (depends on 16)

The memory device of claim 16, wherein the volatile memory is a dynamic random access memory (DRAM).

### Claim 18 (depends on 16)

The memory device of claim 16, wherein in response to the request to delete the first file, the controller performs the erase operation further based on a second table related to the plurality of non-volatile memory regions of the non-volatile memory.

### Claim 19 (depends on 18)

The memory device of claim 18, wherein when the first table is updated, the second table is updated.

### Claim 20

A method comprising:
writing to a first region of a flash memory first data stored in a buffer memory;
updating the first region in the flash memory;
receiving a request to delete a first file that includes the first data; and
performing an erase operation in response to the request to delete the first file using a first table and a second table,
wherein the first table includes first information related to the second table, second information related to the first data and third information related to a location on the first region, and
the second table includes fourth information related to the first data and fifth information related to the location on the first region.
