Re: [PATCH v2] btrfs: block-group: Fix free-space bitmap threshould

2020-08-21 Thread Filipe Manana
On Fri, Aug 21, 2020 at 2:43 PM Marcos Paulo de Souza wrote: > > From: Marcos Paulo de Souza > > [BUG] > After commit 9afc66498a0b ("btrfs: block-group: refactor how we read one > block group item"), cache->length is being assigned after calling > btrfs_create_block_group_cache. This causes a pro

[PATCH v2] btrfs: block-group: Fix free-space bitmap threshould

2020-08-21 Thread Marcos Paulo de Souza
From: Marcos Paulo de Souza [BUG] After commit 9afc66498a0b ("btrfs: block-group: refactor how we read one block group item"), cache->length is being assigned after calling btrfs_create_block_group_cache. This causes a problem since set_free_space_tree_thresholds is calculate the free-space thres