Files
linux/fs/btrfs
Filipe Manana 00deaf04df btrfs: log messages at unpin_extent_range() during unexpected cases
At unpin_extent_range() we trigger a WARN_ON() when we don't find an
extent map or we find one with a start offset not matching the start
offset of the target range. This however isn't very useful for debugging
because:

1) We don't know which condition was triggered, as they are both in the
   same WARN_ON() call;

2) We don't know which inode was affected, from which root, for which
   range, what's the start offset of the extent map, and so on.

So trigger a separate warning for each case and log a message for each
case providing information about the inode, its root, the target range,
the generation and the start offset of the extent map we found.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-12-15 22:59:01 +01:00
..
2023-01-19 09:24:28 +01:00
2023-01-19 09:24:27 +01:00
2023-12-15 20:27:01 +01:00
2023-12-15 20:27:04 +01:00
2023-08-24 16:20:18 -07:00
2023-11-24 18:50:53 +01:00
2023-12-15 20:27:04 +01:00
2023-10-12 16:44:18 +02:00