Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp612958ybd; Wed, 26 Jun 2019 03:52:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwq+3dm3NJffMZRaakbvUSR4CGz0RUMHbux3fmAQ+eFvZf7vR2MyyvIzGMgreB/NwoUQlNq X-Received: by 2002:a17:90a:bf02:: with SMTP id c2mr3982663pjs.73.1561546366750; Wed, 26 Jun 2019 03:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561546366; cv=none; d=google.com; s=arc-20160816; b=j+oqYnj/DFFfaq1ozHDXleI9gjtyd8jJq1LVDRsAUtJwtt5LuAdsPAzLrUl9UNAgD3 qMcGpfkWNaUltZ36hTDfiL/2Tsz2/LqfWn6gWJbm3pijz0k3kiLsGp9ddkGMsrL6MbgO 4XnSl8s78/CEyBwNSWlk6mT7NVfGzOBdSDaI14jNBHqYB5ETY8QzBkg5RoB57k39cMqE sbl5G0BkvhITKOGm9h0bJSTuBOws9j8CglF0Z7jowQjZTXDThRWzCA5RrHYQebmgqNIQ YUrKAZ0T2STnN1+K+XesnlZGQ75a0u6GwlpiqztEUWiiZgQ2YIP/D4TucxOizA7oRHXX EBpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=Am2cdkmhBvDQ9gukjg1nx3ln6ETPo4sbZWHF/uZSGIk=; b=smBFjv5grOvaQpxutPKxlgZZo4C2PPZf0n+Dbp8sHLUQ5CU3BkrTEuJbT+DoTtjDiO mNBLtbapiwR0uT3kR96XtCqYBm9DiZwqbDT0JEj1wqh0+IPQk3r+oiUlz8ugxvFtveAS 3KJMXMsIXXpjs7DkrEKr38kgBitx7vuFjPkMJO1N8us8GbheP9mbu/s1x+2bpNxgFpDO dpvlKaak1DRKMEMNHDyvOEaJF6PYqFlpwK8u7PsfYiTyRJgTPCO4atMrhNVEnz4NtXjR xfgbdYeb0QJN/yxau1L4IFFh6TpzWT5hViLkC8A21Me08jeSASNCQdFr8gcEx0hbgU5M f7jA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22si465715plr.120.2019.06.26.03.52.31; Wed, 26 Jun 2019 03:52:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726673AbfFZKwV (ORCPT + 99 others); Wed, 26 Jun 2019 06:52:21 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:19080 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726347AbfFZKwU (ORCPT ); Wed, 26 Jun 2019 06:52:20 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6E58F3CB74AA66A3D694; Wed, 26 Jun 2019 18:52:18 +0800 (CST) Received: from [10.151.23.176] (10.151.23.176) by smtp.huawei.com (10.3.19.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Jun 2019 18:52:08 +0800 Subject: Re: [PATCH RESEND] staging: erofs: remove unsupported ->datamode check in fill_inline_data() To: Yue Hu , , CC: , , , , Miao Xie References: <20190626103936.9064-1-zbestahu@gmail.com> From: Gao Xiang Message-ID: <9c9c656e-2f29-d086-362e-76bf1760191a@huawei.com> Date: Wed, 26 Jun 2019 18:51:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20190626103936.9064-1-zbestahu@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.151.23.176] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yue, On 2019/6/26 18:39, Yue Hu wrote: > From: Yue Hu > > Already check if ->datamode is supported in read_inode(), no need to check > again in the next fill_inline_data() only called by fill_inode(). > > Signed-off-by: Yue Hu > Reviewed-by: Gao Xiang > Reviewed-by: Chao Yu Bump the patch version in the title as Greg said... Otherwise, it is hard to differ which patch is the latest patch... Thanks, Gao Xiang > --- > drivers/staging/erofs/inode.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/staging/erofs/inode.c b/drivers/staging/erofs/inode.c > index e51348f..d6e1e16 100644 > --- a/drivers/staging/erofs/inode.c > +++ b/drivers/staging/erofs/inode.c > @@ -129,8 +129,6 @@ static int fill_inline_data(struct inode *inode, void *data, > struct erofs_sb_info *sbi = EROFS_I_SB(inode); > const int mode = vi->datamode; > > - DBG_BUGON(mode >= EROFS_INODE_LAYOUT_MAX); > - > /* should be inode inline C */ > if (mode != EROFS_INODE_LAYOUT_INLINE) > return 0; >