sysprog21 / simplefs

A simple native file system for Linux kernel
Other
362 stars 91 forks source link

Redesign file deletion process in simplefs #63

Open HotMercury opened 2 months ago

HotMercury commented 2 months ago

I discover that deleting a file in the current system has a high overhead. When a file is deleted, to maintain the compactness of simplefs_dir_block, subsequent files are shifted forward to fill the gap, causing a large amount of I/O. Therefore, I think we should redesign this process using a marking approach.