Struct btrfs_path auto cleaning conversions
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest27 patches 6 repliesIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
None of the 27 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Johannes Thumshirn |
|---|---|
| Series | R-b |
| 1/27 | |
| 2/27 | |
| 3/27 | |
| 4/27 | |
| 5/27 | |
| 6/27 | |
| 7/27 | |
| 8/27 | |
| 9/27 | |
| 10/27 | |
| 11/27 | |
| 12/27 | |
| 13/27 | |
| 14/27 | |
| 15/27 | |
| 16/27 | |
| 17/27 | |
| 18/27 | |
| 19/27 | |
| 20/27 | |
| 21/27 | |
| 22/27 | |
| 23/27 | |
| 24/27 | |
| 25/27 | |
| 26/27 | |
| 27/27 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/27] Struct btrfs_path auto cleaning conversions
We have the scoped freeing for struct btrfs_path but it's not used as much as it could. This patchset converts the easy cases and it's also a preview if we really want to do that. It makes understanding the exit paths a bit less obvious, but so far I think it's manageable.
The path is used in many functions and following a few simple patterns, with the macro BTRFS_PATH_AUTO_FREE quite visible among the declarations, so it's nothing hard to be aware of that when reading the code.
The conversion has been done on half of the files, so if somebody wants to continue, feel free. I've skipped functions with more complicated branching where the auto freeing would make it worse.
David Sterba (27):
btrfs: use BTRFS_PATH_AUTO_FREE in sample_block_group_extent_item()
btrfs: use BTRFS_PATH_AUTO_FREE in insert_dev_extent()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_setup_space_cache()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_start_dirty_block_groups()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_write_dirty_block_groups()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_insert_item()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_commit_inode_delayed_items()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_init_dev_replace()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_run_dev_replace()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_check_dir_item_collision()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_read_tree_root()
btrfs: use BTRFS_PATH_AUTO_FREE in load_global_roots()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_init_root_free_objectid()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_get_name()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_lookup_data_extent()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_lookup_extent_info()
btrfs: use BTRFS_PATH_AUTO_FREE in __btrfs_inc_extent_ref()
btrfs: use BTRFS_PATH_AUTO_FREE in run_delayed_extent_op()
btrfs: use BTRFS_PATH_AUTO_FREE in check_ref_exists()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_drop_subtree()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_insert_hole_extent()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_lookup_bio_sums()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_del_csums()
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_remove_free_space_inode()
btrfs: use BTRFS_PATH_AUTO_FREE in populate_free_space_tree()
btrfs: use BTRFS_PATH_AUTO_FREE in clear_free_space_tree()
btrfs: use BTRFS_PATH_AUTO_FREE in load_free_space_tree()
fs/btrfs/block-group.c | 20 ++++++---------- fs/btrfs/ctree.c | 3 +-- fs/btrfs/delayed-inode.c | 3 +-- fs/btrfs/dev-replace.c | 32 ++++++++++--------------- fs/btrfs/dir-item.c | 24 +++++++------------ fs/btrfs/disk-io.c | 29 ++++++++++------------- fs/btrfs/export.c | 10 +++----- fs/btrfs/extent-tree.c | 47 ++++++++++++++----------------------- fs/btrfs/file-item.c | 17 +++++--------- fs/btrfs/free-space-cache.c | 13 ++++------ fs/btrfs/free-space-tree.c | 45 ++++++++++++++--------------------- 11 files changed, 91 insertions(+), 152 deletions(-)
Signature · 1 line
2.47.1