[GIT PULL] Btrfs fixes for 7.0-rc6

From: David Sterba

Date: Sat Mar 28 2026 - 17:20:44 EST


Hi,

please pull a few more fixes. There's one that stands out in size as it
fixes an edge case in fsync. Thanks.

- fix issue on fsync where file with zero size appears as a non-zero
after log replay

- in zlib compression, handle a crash when data alignment causes folio
reference issues

- fix possible crash with enabled tracepoints on a overlayfs mount

- handle device stats update error

- on zoned filesystems, fix kobject leak on sub-block groups

- fix super block offset in an error message in validation

----------------------------------------------------------------
The following changes since commit b17b79ff896305fd74980a5f72afec370ee88ca4:

btrfs: reject root items with drop_progress and zero drop_level (2026-03-17 11:43:08 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git tags/for-7.0-rc5-tag

for you to fetch changes up to 1c37d896b12dfd0d4c96e310b0033c6676933917:

btrfs: fix lost error when running device stats on multiple devices fs (2026-03-23 20:12:12 +0100)

----------------------------------------------------------------
Filipe Manana (2):
btrfs: fix zero size inode with non-zero size after log replay
btrfs: fix lost error when running device stats on multiple devices fs

Goldwyn Rodrigues (1):
btrfs: tracepoints: get correct superblock from dentry in event btrfs_sync_file()

Mark Harmstone (1):
btrfs: fix super block offset in error message in btrfs_validate_super()

Qu Wenruo (1):
btrfs: zlib: handle page aligned compressed size correctly

Shin'ichiro Kawasaki (1):
btrfs: fix leak of kobject name for sub-group space_info

fs/btrfs/block-group.c | 2 +-
fs/btrfs/disk-io.c | 4 +-
fs/btrfs/tree-log.c | 98 +++++++++++++++++++++++++++++---------------
fs/btrfs/volumes.c | 5 ++-
fs/btrfs/zlib.c | 4 +-
include/trace/events/btrfs.h | 11 +++--
6 files changed, 81 insertions(+), 43 deletions(-)