Re: [PATCH] btrfs: remove unneeded check for btrfs_free_space_info in insert_into_bitmap()

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

 



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>



[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