commit | c8ef8c3eb573ae2d7f7f41d93f0e34b8f6dfcd6f | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kent.overstreet@linux.dev> | Sun Aug 13 18:04:32 2023 -0400 |
committer | Kent Overstreet <kent.overstreet@linux.dev> | Sun Oct 22 17:10:11 2023 -0400 |
tree | 5c47400c36d3ed3bd8cf2b26376e6d9cbedeb03d | |
parent | ff5b741c25fb9546d876ca4c0c1d8720f6a2471c [diff] |
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: Kent Overstreet <kent.overstreet@linux.dev>