diff options
author | Josef Bacik <josef@toxicpanda.com> | 2020-09-18 16:44:33 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-10-07 12:17:58 +0200 |
commit | 92e26df43b1a9725c205a7e4416240ce72eac4a3 (patch) | |
tree | ea45b9210a2421ca13e04ed5a53982ee46c377f8 /fs/direct-io.c | |
parent | 124604eb50f88e6c1ff6587bdd2fc09bea810b32 (diff) |
btrfs: return error if we're unable to read device stats
I noticed when fixing device stats for seed devices that we simply threw
away the return value from btrfs_search_slot(). This is because we may
not have stat items, but we could very well get an error, and thus miss
reporting the error up the chain.
Fix this by returning ret if it's an actual error, and then stop trying
to init the rest of the devices stats and return the error up the chain.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/direct-io.c')
0 files changed, 0 insertions, 0 deletions