Skip to content
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

Add support for the FUSE_BATCH_FORGET operation #123

Merged

Conversation

ironsmile
Copy link
Contributor

There are certain Kernel versions which do not send individual
Forget operations after they receive "not implemented" for Batch Forget.
One example is "5.4.0-110-generic" on Ubuntu 20.04. I am sure there are
plenty of others.

This leads to inode "leaks". Where reference counts are never decreased
and the inodes were left hanging around long after they are not needed
any more.

The best way to fix that was adding support for batch operations to the
lib. This way all users will be able to benefit from the batching
optimization.

Copy link
Collaborator

@stapelberg stapelberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR! Can you rebase it onto current master? I pushed a commit to fix CI on mac in the meantime.

fuseops/ops.go Outdated Show resolved Hide resolved
There are certain Kernel versions which do not send individual
Forget operations after they receive "not implemented" for Batch Forget.
One example is "5.4.0-110-generic" on Ubuntu 20.04. I am sure there are
plenty of others.

This leads to inode "leaks". Where reference counts are never decreased
and the inodes were left hanging around long after they are not needed
any more.

The best way to fix that was adding support for batch operations to the
lib. This way all users will be able to benefit from the batching
optimization.
@ironsmile ironsmile force-pushed the implement-the-batch-forget-operation branch from 3dbbba4 to e3e4e37 Compare May 27, 2022 06:42
@ironsmile
Copy link
Contributor Author

You are welcome! I've rebased it to the latest master from 9 minutes ago too. Hope it builds now 😄

@stapelberg stapelberg merged commit 37d63df into jacobsa:master May 27, 2022
@stapelberg
Copy link
Collaborator

Thanks!

@vitalif
Copy link
Contributor

vitalif commented Jul 2, 2022

Thanks, I did just the same thing yesterday and today I discovered that it's already done here :))

One thing I want to add is #126

@ironsmile ironsmile deleted the implement-the-batch-forget-operation branch August 1, 2023 12:47
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.

None yet

3 participants