diff options
| author | Linus Torvalds <[email protected]> | 2025-09-17 14:55:45 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2025-09-17 14:55:45 +0000 |
| commit | b6f456a76f7379fa4e30371e548f40b10a76b60f (patch) | |
| tree | 6b3945de591bce1e32b6231b0eb859a41486ba7d /fs/btrfs/zoned.c | |
| parent | Merge tag 'perf-tools-fixes-for-v6.17-2025-09-16' of git://git.kernel.org/pub... (diff) | |
| parent | btrfs: annotate block group access with data_race() when sorting for reclaim (diff) | |
| download | kernel-b6f456a76f7379fa4e30371e548f40b10a76b60f.tar.gz kernel-b6f456a76f7379fa4e30371e548f40b10a76b60f.zip | |
Merge tag 'for-6.17-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fixes from David Sterba:
- in zoned mode, turn assertion to proper code when reserving space in
relocation block group
- fix search key of extended ref (hardlink) when replaying log
- fix initialization of file extent tree on filesystems without
no-holes feature
- add harmless data race annotation to block group comparator
* tag 'for-6.17-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
btrfs: annotate block group access with data_race() when sorting for reclaim
btrfs: initialize inode::file_extent_tree after i_mode has been set
btrfs: zoned: fix incorrect ASSERT in btrfs_zoned_reserve_data_reloc_bg()
btrfs: fix invalid extref key setup when replaying dentry
Diffstat (limited to 'fs/btrfs/zoned.c')
| -rw-r--r-- | fs/btrfs/zoned.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c index ea662036f441..efc2a81f50e5 100644 --- a/fs/btrfs/zoned.c +++ b/fs/btrfs/zoned.c @@ -2582,9 +2582,9 @@ again: spin_lock(&space_info->lock); space_info->total_bytes -= bg->length; space_info->disk_total -= bg->length * factor; + space_info->disk_total -= bg->zone_unusable; /* There is no allocation ever happened. */ ASSERT(bg->used == 0); - ASSERT(bg->zone_unusable == 0); /* No super block in a block group on the zoned setup. */ ASSERT(bg->bytes_super == 0); spin_unlock(&space_info->lock); |
