diff options
| author | Kent Overstreet <[email protected]> | 2023-08-13 22:04:32 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2023-10-22 21:10:11 +0000 |
| commit | c8ef8c3eb573ae2d7f7f41d93f0e34b8f6dfcd6f (patch) | |
| tree | 5c47400c36d3ed3bd8cf2b26376e6d9cbedeb03d /fs/bcachefs/btree_trans_commit.c | |
| parent | bcachefs: Zero btree_paths on allocation (diff) | |
| download | kernel-c8ef8c3eb573ae2d7f7f41d93f0e34b8f6dfcd6f.tar.gz kernel-c8ef8c3eb573ae2d7f7f41d93f0e34b8f6dfcd6f.zip | |
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 <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions
