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

Fix long_free_dirty accounting for small files #16264

Merged
merged 1 commit into from
Jul 23, 2024

Commits on Jun 14, 2024

  1. Fix long_free_dirty accounting for small files

    For files smaller than recordsize, it's most likely that they don't have
    L1 blocks. However, current calculation will always return at least 1 L1
    block.
    
    In this change, we check dnode level to figure out if it has L1 blocks
    or not, and return 0 if it doesn't. This will reduce the chance of
    unnecessary throttling when deleting a large number of small files.
    
    Signed-off-by: Chunwei Chen <[email protected]>
    davidchenntnx committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    4b56f52 View commit details
    Browse the repository at this point in the history