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

2020-08-24 Thread David Sterba
On Fri, Aug 21, 2020 at 11:54:44AM -0300, 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 caus

[PATCH v3] 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