Re: [PATCH] btrfs: free-space-cache: Fix error return code in __load_free_space_cache

From: David Sterba
Date: Fri Dec 04 2020 - 12:45:29 EST


On Fri, Nov 20, 2020 at 09:08:04AM +0800, Zhihao Cheng wrote:
> Fix to return the error code(instead always 0) when memory allocating
> failed in __load_free_space_cache().

Hm right the error handling flow in that function is a mess and the
error values are not set. Your patch is a minimal fix so I'll add it,
the function could use some cleanups though. Thanks.