aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2019-09-25 11:03:03 +0000
committerDavid Sterba <[email protected]>2019-11-18 11:46:51 +0000
commitd3316c8233bb05e0dd855d30aac347bb8ad76ee4 (patch)
treee7690f6062ef838fe7b932aebd90843fa92f9310 /fs/btrfs/async-thread.c
parentbtrfs: Don't opencode btrfs_find_name_in_backref in backref_in_log (diff)
downloadkernel-d3316c8233bb05e0dd855d30aac347bb8ad76ee4.tar.gz
kernel-d3316c8233bb05e0dd855d30aac347bb8ad76ee4.zip
btrfs: Properly handle backref_in_log retval
This function can return a negative error value if btrfs_search_slot errors for whatever reason or if btrfs_alloc_path runs out of memory. This is currently problemattic because backref_in_log is treated by its callers as if it returns boolean. Fix this by adding proper error handling in callers. That also enables the function to return the direct error code from btrfs_search_slot. Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions