commit | 56e1edb0e3334db479b8400abc5a9c03602e5ae8 | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@toxicpanda.com> | Fri Dec 03 17:18:16 2021 -0500 |
committer | David Sterba <dsterba@suse.com> | Fri Jan 07 14:18:25 2022 +0100 |
tree | 9b77d1f61311d34e2807b43db4bdafb6d1f0e217 | |
parent | 71d18b53540f106a394cb35ed93b487b76678b06 [diff] |
btrfs: convert BUG_ON() in btrfs_truncate_inode_items to ASSERT We have a correctness BUG_ON() in btrfs_truncate_inode_items to make sure that we're always using min_type == BTRFS_EXTENT_DATA_KEY if new_size is > 0. Convert this to an ASSERT. Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>