]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: fix warning messages not printing interval at unpin_extent_range()
authorFilipe Manana <fdmanana@suse.com>
Wed, 13 Mar 2024 12:49:31 +0000 (12:49 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Mar 2024 15:42:38 +0000 (16:42 +0100)
commit4dc1d69c2b101eee0bf071187794ffed2f9c2596
tree80395e7e01fe64059cdc2b605ee674baf25eb5ac
parent8a565ec04d6c43f330e7401e5af3458431b29bc6
btrfs: fix warning messages not printing interval at unpin_extent_range()

At unpin_extent_range() we print warning messages that are supposed to
print an interval in the form "[X, Y)", with the first element being an
inclusive start offset and the second element being the exclusive end
offset of a range. However we end up printing the range's length instead
of the range's exclusive end offset, so fix that to avoid having confusing
and non-sense messages in case we hit one of these unexpected scenarios.

Fixes: 00deaf04df35 ("btrfs: log messages at unpin_extent_range() during unexpected cases")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_map.c