aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2024-03-13 17:14:02 +0000
committerDavid Sterba <[email protected]>2024-03-26 15:42:39 +0000
commit2133460061e1bbecb47da73ad5ec7cf8e951006c (patch)
tree8fbda74199b8020c5cb13b4ef79d5a9f6d94874f /tools/lib/bpf/libbpf.c
parentbtrfs: fix message not properly printing interval when adding extent map (diff)
downloadkernel-2133460061e1bbecb47da73ad5ec7cf8e951006c.tar.gz
kernel-2133460061e1bbecb47da73ad5ec7cf8e951006c.zip
btrfs: use btrfs_warn() to log message at btrfs_add_extent_mapping()
At btrfs_add_extent_mapping(), if we failed to merge the extent map, which is unexpected and theoretically should never happen, we use WARN_ONCE() to log a message which is not great because we don't get information about which filesystem it relates to in case we have multiple btrfs filesystems mounted. So change this to use btrfs_warn() and surround the error check with WARN_ON() so we always get a useful stack trace and the condition is flagged as "unlikely" since it's not expected to ever happen. Reviewed-by: Qu Wenruo <[email protected]> Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions