Re: [PATCH 36/43] btrfs: hold a ref on the root in open_ctree

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

 




On 17.01.20 г. 23:25 ч., Josef Bacik wrote:
> We lookup the fs_root and put it in our fs_info directly, we should hold
> a ref on this root for the lifetime of the fs_info.  Rework the free'ing
> function so that it calls btrfs_put_fs_root() on the root at free time
> with all of the other global trees.
> 
> Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx>

So you not only hold a ref here but also refactor some cleanup code.
This definitely needs to be split into separate patches.



[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