Commit c8ef8c3e authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix bch2_extent_fallocate()



 - There was no need for a retry loop in bch2_extent_fallocate(); if we
   have to retry we may be overwriting something different and we need
   to return an error and let the caller retry.
 - The bch2_alloc_sectors_start() error path was wrong, and wasn't
   running our cleanup at the end of the function

This also fixes a very rare open bucket leak due to the missing cleanup.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent ff5b741c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment