On Tue, Nov 05, 2019 at 02:51:27PM +0100, Johannes Thumshirn wrote: > The only caller for insert_into_bitmap() is __btrfs_add_free_space() and > it takes care that the btrfs_free_space_info pointer passed to > insert_into_bitmap() is allocated. > > Inside insert_into_bitmap() we're not freeing or NULLing this pointer > anywhere, so checking if it is pre-allocated inside 'new_bitmap' label is > pointless, so remove this check. > > Signed-off-by: Johannes Thumshirn <jthumshirn@xxxxxxx> Reviewed-by: David Sterba <dsterba@xxxxxxxx>
