Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4125465pxf; Tue, 16 Mar 2021 06:26:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrk4aIJFp3/0iDwtu5h0E1xSVJJTW+e6seXz8cXWiQtPRFsz7wraMT3a490BrZQh5dXK2s X-Received: by 2002:aa7:d9c8:: with SMTP id v8mr35341291eds.9.1615901179777; Tue, 16 Mar 2021 06:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615901179; cv=none; d=google.com; s=arc-20160816; b=aFf7zR+b02LJI/HJQjBe0fLEVQqLo1y1gB94CuF0/gSkil5umKTRKtHVjqFoKBmmQi mfyGtC639V0jM3LjdCXUERMyg97Z+5ynR/lwszIwI1Wu/JpysMTFXRWZrT+XUM8IbxF+ KMDHQ/ofCxRy+x/AAWaEK6Hgdd5cRYPGyiZYa+WT703h8j+Zg/DQtT28hziuYNWJn4e6 0qVUdg/azeOrZPjUkDdWsTf1SOWPhmJ5WHQrY5zhd+S+JSKLbA2AjMcR/sqylHiRybR6 3hTNmxPxhyggOjlpHTPM4dttKijrJGB44b0+8MvHIY7laDQ3gO/Jd+iKRUK7afHO7QFl ZeEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=fuhluHA+2P5xHXiYiPxCoqtxadExSdfw1CaDcDbKnbE=; b=O8MrR4SUyY/Ml6G+30CDO7UJyirbO8oYktJr4zQHOwZOwLq/rS0oTJbrk7hfUs+4bS FgeZeRE5UWG+NaCW20/Z2mDIyaKSqsfPYhyna7Ql3XF0be/ILOlHz1MHvfO5qstg40nf 69FHZrtp5uCZF2OzNzBExh7y9zkpN4SkfNh7H9K19Q3FWB5THct5Kr2pvgM6pNOs7GAW YIxsbhCes0aR0fzdP9M6Qq8c3z495+vPS2ipyMMtUedjhoHxk0iL5YZ/bHuk9lCX19j1 Vo/EftDQIbzH7BOZWTBkQsAzFL7gyBD9WpDS/ZCoA+fn5pTb7BjDkA2lqWo465xXoqdL 5dog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si14157629edr.46.2021.03.16.06.25.56; Tue, 16 Mar 2021 06:26:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232017AbhCPHjV (ORCPT + 99 others); Tue, 16 Mar 2021 03:39:21 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13624 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232103AbhCPHjG (ORCPT ); Tue, 16 Mar 2021 03:39:06 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F04qq5C2vz16D9L; Tue, 16 Mar 2021 15:37:11 +0800 (CST) Received: from [10.136.110.154] (10.136.110.154) by smtp.huawei.com (10.3.19.206) with Microsoft SMTP Server (TLS) id 14.3.498.0; Tue, 16 Mar 2021 15:38:59 +0800 Subject: Re: [PATCH v6 1/2] erofs: avoid memory allocation failure during rolling decompression To: Huang Jianan , CC: , , References: <20210316031515.90954-1-huangjianan@oppo.com> From: Chao Yu Message-ID: <3c54be1f-7807-9398-7e75-0c521403d2e0@huawei.com> Date: Tue, 16 Mar 2021 15:38:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20210316031515.90954-1-huangjianan@oppo.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.110.154] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/3/16 11:15, Huang Jianan via Linux-erofs wrote: > Currently, err would be treated as io error. Therefore, it'd be > better to ensure memory allocation during rolling decompression > to avoid such io error. > > In the long term, we might consider adding another !Uptodate case > for such case. > > Signed-off-by: Huang Jianan > Signed-off-by: Guo Weichao > Reviewed-by: Gao Xiang Reviewed-by: Chao Yu Thanks,