summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-02-05 16:09:25 +0300
committerDavid Sterba <dsterba@suse.com>2025-03-18 22:35:45 +0300
commita77749b3e21813566cea050bbb3414ae74562eba (patch)
tree8b3fb67ba8aeb3af1bc2de828d03e0d49b79cacd /tools/perf/scripts/python
parent78843d7e4e8b2cd85754c121d3f636196c01045d (diff)
downloadlinux-a77749b3e21813566cea050bbb3414ae74562eba.tar.xz
btrfs: send: return -ENAMETOOLONG when attempting a path that is too long
When attempting to build a too long path we are currently returning -ENOMEM, which is very odd and misleading. So update fs_path_ensure_buf() to return -ENAMETOOLONG instead. Also, while at it, move the WARN_ON() into the if statement's expression, as it makes it clear what is being tested and also has the effect of adding 'unlikely' to the statement, which allows the compiler to generate better code as this condition is never expected to happen. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions