Re: [PATCH] btrfs-progs: Do proper error handling in add_cache_extent()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 14, 2020 at 10:02:31AM +0800, Qu Wenruo wrote:
> If we have memory allocation failure in add_cache_extent(), it will
> simply exit with one error message.
> 
> That's definitely not proper, especially when all but one call sites
> have handled the error.
> 
> This patch will return -ENOMEM for add_cache_extent(), and fix the only
> call site which doesn't handle error from it.
> 
> Signed-off-by: Qu Wenruo <wqu@xxxxxxxx>

Added to devel, thanks.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux