Skip to content

Reclaim extent block when removing non-root dir #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025

Conversation

RoyWFHuang
Copy link
Collaborator

When removing a directory, the extent block was not reclaimed properly.

This fix ensures that extent blocks for non-root directories are reclaimed during removal. The root directory is excluded from this process, as it serves as the mount point and cannot be removed.

The reclaim mechanism is designed to run when a directory is actually removed, not just when it becomes empty.

close #65

When removing a directory, the extent block was not reclaimed properly.

This fix ensures that extent blocks for non-root directories are
reclaimed during removal. The root directory is excluded from this
process, as it serves as the mount point and cannot be removed.

The reclaim mechanism is designed to run when a directory is actually
removed, not just when it becomes empty.

close sysprog21#65
@RoyWFHuang RoyWFHuang force-pushed the bug/issue65_dentry_relaim branch from eb05339 to 6035a76 Compare May 20, 2025 04:49
@jserv jserv merged commit ec8c4bc into sysprog21:master May 20, 2025
2 checks passed
@jserv
Copy link
Collaborator

jserv commented May 20, 2025

Thank @RoyWFHuang for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

questionable code: why removing a dentry does not reclaim its blocks(if the block is empty)?
2 participants