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

btrfs-progs: improve error handling in btrfs_split_item() #921

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Commits on Nov 9, 2024

  1. btrfs-progs: improve error handling in btrfs_split_item()

    This involves the following error cases:
    
    - Unable to find the original item
      Return -EAGAIN and release the path (which is not done in the original
      code)
    
    - Error from split_leaf()
      Remove the BUG_ON() and handle the error.
      The most common error is ENOSPC.
    
    - Error from kmalloc()
      Just handle the error and return -ENOMEM.
    
    Issue: kdave#312
    Signed-off-by: Qu Wenruo <[email protected]>
    adam900710 committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    2d164b3 View commit details
    Browse the repository at this point in the history