diff options
author | 2021-04-08 07:40:25 -0500 | |
---|---|---|
committer | 2021-06-21 15:19:04 +0200 | |
commit | dc56219fe22e9d2f395f5c58ba3277f8df4cff84 (patch) | |
tree | 8e74d80f25cb3f87a0214de0fae7c728fed6a4fa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 5.13-rc7 (diff) | |
download | linux-dev-dc56219fe22e9d2f395f5c58ba3277f8df4cff84.tar.xz linux-dev-dc56219fe22e9d2f395f5c58ba3277f8df4cff84.zip |
btrfs: correct try_lock_extent() usage in read_extent_buffer_subpage()
try_lock_extent() returns 1 on success or 0 for failure and not an error
code. If try_lock_extent() fails, read_extent_buffer_subpage() returns
zero indicating subpage extent read success.
Return EAGAIN/EWOULDBLOCK if try_lock_extent() fails in locking the
extent.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions