Re: [PATCH 3/3] fs/btrfs: avoid null pointer dereference if reloc control has not been initialized

From: David Sterba
Date: Mon Jan 04 2021 - 10:13:52 EST


On Sun, Dec 27, 2020 at 10:55:31PM +0800, Defang Bo wrote:
> Similar to commmit<389305b2>,

Please use full commit reference like 389305b2aa68 ("btrfs: relocation:
Only remove reloc rb_trees if reloc control has been initialized")

> it turns out that fs_info::reloc_ctl can be NULL ,

Please describe how the NULL can get there.