]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: zoned: no longer count fresh BG region as zone unusable
authorNaohiro Aota <naohiro.aota@wdc.com>
Mon, 7 Aug 2023 16:12:38 +0000 (01:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jan 2024 12:39:06 +0000 (12:39 +0000)
commit3c42cc437d7e1e3095be0eca9d1fea103262e947
tree06d12484b841cf805ae290dc42bfe79805ddc01b
parentb09a67617621f41e12ad9ec771ff320fc8b88a94
btrfs: zoned: no longer count fresh BG region as zone unusable

[ Upstream commit 6a8ebc773ef64c8f12d6d60fd6e53d5ccc81314b ]

Now that we switched to write time activation, we no longer need to (and
must not) count the fresh region as zone unusable. This commit is similar
to revert of commit fa2068d7e922b434eb ("btrfs: zoned: count fresh BG
region as zone unusable").

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/free-space-cache.c
fs/btrfs/zoned.c