]> www.infradead.org Git - nvme.git/commit
btrfs: tree-checker: add extra ram_bytes and disk_num_bytes check
authorQu Wenruo <wqu@suse.com>
Sun, 23 Jun 2024 22:47:58 +0000 (08:17 +0930)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:29 +0000 (15:33 +0200)
commit5fc070a9246d8d7d5dbccecf211085be43e0e8e5
tree315d1ace88967cb2426c514c29c61dac20f032b0
parent896c8b92dda6ca20c6a591db996039aa8931478b
btrfs: tree-checker: add extra ram_bytes and disk_num_bytes check

This is to ensure non-compressed file extents (both regular and
prealloc) should have matching ram_bytes and disk_num_bytes.

This is only for CONFIG_BTRFS_DEBUG and CONFIG_BTRFS_ASSERT case,
furthermore this will not return error, but just a kernel warning to
inform developers.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-checker.c