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

2020-12-15 Thread David Sterba
On Mon, Dec 07, 2020 at 09:56:12PM +0800, Zhihao Cheng wrote: > Fix to return the error code(instead always 0) when memory allocating > failed in __load_free_space_cache(). > > This lacks the analysis of consequences, so there's only one caller and By "This lacks the analysis of consequences" I

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

2020-12-07 Thread Zhihao Cheng
Fix to return the error code(instead always 0) when memory allocating failed in __load_free_space_cache(). This lacks the analysis of consequences, so there's only one caller and that will treat values <=0 as 'cache not loaded'. There's no functional change but otherwise the error values should