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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux