• David Sterba's avatar
    btrfs: obsolete and remove mount option alloc_start · 0d0c71b3
    David Sterba authored
    The mount option alloc_start was used in the past for debugging and
    stressing the chunk allocator. Not meant to be used by users, so we're
    not breaking anybody's setup.
    
    There was some added complexity handling changes of the value and when
    it was not same as default. Such code has likely been untested and I
    think it's better to remove it.
    
    This patch kills all use of alloc_start, and by doing that also fixes
    a bug when alloc_size is set, potentially called from statfs:
    
    in btrfs_calc_avail_data_space, traversing the list in RCU, the RCU
    protection is temporarily dropped so btrfs_account_dev_extents_size can
    be called and then RCU is locked again! Doing that inside
    list_for_each_entry_rcu is just asking for trouble, but unlikely to be
    observed in practice.
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    0d0c71b3
ctree.h 126 KB