Re: [PATCH 39/43] btrfs: free more things in btrfs_free_fs_info

Nikolay Borisov
2020-01-23T11:58:35Z

On 17.01.20 г. 23:25 ч., Josef Bacik wrote:
> Things like the percpu_counters, the mapping_tree, and the csum hash can
> all be free'd at btrfs_free_fs_info time, since the helpers all check if
> the structure has been init'ed already. This significantly cleans up
> the error cases in open_ctree.
>

Mentioning the involved call chains will be helpful e.g

btrfs_mount_root
btrfs_fill_super
open_ctree <--- if this fails then we have:

btrfs_mount_root
deactivate_locked_super
->kill_sb (btrfs_kill_sb)
btrfs_free_fs_info.