diff options
| author | Daniel Vacek <[email protected]> | 2025-04-25 07:23:57 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:50 +0000 |
| commit | 13ae88706a8c3db412ba7a7a07dcc55e8f1eb53c (patch) | |
| tree | 2941ecd99c06f7ffc5524cc4ea2ec01c0a8d48c3 /fs/btrfs/extent_io.c | |
| parent | btrfs: use buffer xarray for extent buffer writeback operations (diff) | |
| download | kernel-13ae88706a8c3db412ba7a7a07dcc55e8f1eb53c.tar.gz kernel-13ae88706a8c3db412ba7a7a07dcc55e8f1eb53c.zip | |
btrfs: get rid of goto in alloc_test_extent_buffer()
The `free_eb` label is used only once. Simplify by moving the code inplace.
Signed-off-by: Daniel Vacek <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/extent_io.c')
| -rw-r--r-- | fs/btrfs/extent_io.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index a3f7e036437a..8467b0128c93 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -3031,15 +3031,13 @@ again: goto again; } xa_unlock_irq(&fs_info->buffer_tree); - goto free_eb; + btrfs_release_extent_buffer(eb); + return exists; } xa_unlock_irq(&fs_info->buffer_tree); check_buffer_tree_ref(eb); return eb; -free_eb: - btrfs_release_extent_buffer(eb); - return exists; #else /* Stub to avoid linker error when compiled with optimizations turned off. */ return NULL; |
