diff options
author | David Sterba <dsterba@suse.com> | 2025-04-02 01:18:06 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-05-15 14:30:41 +0200 |
commit | e235418118774fbe52cc558991aa769d2dbc9292 (patch) | |
tree | ccea69caa8862d3a9db55edcfe1516c64c8cdb30 /fs/btrfs/file.c | |
parent | c6a43322a3ab01da6c7588c29a0a918b9d797c11 (diff) |
btrfs: do more trivial BTRFS_PATH_AUTO_FREE conversions
The most trivial pattern for the auto freeing when the variable is
declared with the macro and the final btrfs_free_path() is removed.
There are almost none goto -> return conversions and there's no other
function cleanup.
Reviewed-by: Daniel Vacek <neelx@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 48fc6561c33a..cbe98e825162 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -553,7 +553,7 @@ int btrfs_mark_extent_written(struct btrfs_trans_handle *trans, { struct btrfs_root *root = inode->root; struct extent_buffer *leaf; - struct btrfs_path *path; + BTRFS_PATH_AUTO_FREE(path); struct btrfs_file_extent_item *fi; struct btrfs_ref ref = { 0 }; struct btrfs_key key; @@ -791,7 +791,6 @@ again: } } out: - btrfs_free_path(path); return ret; } |