summaryrefslogtreecommitdiff
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-07-02 15:23:28 +0300
committerDavid Sterba <dsterba@suse.com>2020-07-27 12:55:39 +0200
commit2279a270534c678e78f961fed8e09c9c69611ceb (patch)
treed75262d88f6a363510c92cf5596354808a4455c5 /fs/btrfs/volumes.h
parentb90a4ab6ba9cce79a1ac06a250d5fc8c3dff382b (diff)
downloadlinux-2279a270534c678e78f961fed8e09c9c69611ceb.tar.gz
linux-2279a270534c678e78f961fed8e09c9c69611ceb.tar.bz2
linux-2279a270534c678e78f961fed8e09c9c69611ceb.zip
btrfs: make get_state_failrec return failrec directly
Only failure that get_state_failrec can get is if there is no failure for the given address. There is no reason why the function should return a status code and use a separate parameter for returning the actual failure rec (if one is found). Simplify it by making the return type a pointer and return ERR_PTR value in case of errors. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
0 files changed, 0 insertions, 0 deletions