summaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorZhihao Cheng <chengzhihao1@huawei.com>2020-11-20 09:08:04 +0800
committerDavid Sterba <dsterba@suse.com>2021-02-08 22:58:49 +0100
commit3cc64e7ebfb0d7faaba2438334c43466955a96e8 (patch)
treeef8709c40b36905d65d2b90d0aae3b87fce7a279 /fs/btrfs/tree-log.c
parent4f4317c13a40194940acf4a71670179c4faca2b5 (diff)
btrfs: clarify error returns values in __load_free_space_cache
Return value in __load_free_space_cache is not properly set after (unlikely) memory allocation failures and 0 is returned instead. This is not a problem for the caller load_free_space_cache because only value 1 is considered as 'cache loaded' but for clarity it's better to set the errors accordingly. Fixes: a67509c30079 ("Btrfs: add a io_ctl struct and helpers for dealing with the space cache") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions