Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp515766ybd; Wed, 26 Jun 2019 02:03:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwD62bN9rbp8sEbr5HYsc6Ne2pdqoC/C9nD75Q8oz10E4U7/dNYnP3IAH4ldh7p5N4boCUX X-Received: by 2002:a17:902:788e:: with SMTP id q14mr4198909pll.234.1561539780906; Wed, 26 Jun 2019 02:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561539780; cv=none; d=google.com; s=arc-20160816; b=J6GgAuMKi26Oi0/fNvV9Mdco3KfjQbNtodMuqUx+ooTyrPtc2TtWekUCB9UWzpwYPf ad0uy9P67elGU6OBAFGkdHuHQMOEbKm3OOYkyjG4kWtl6TUSWdCvPVfurEp8sQW0dLO3 leEAQzVxU/Bk17ZFSi8h2uyHQ0WoIfD/A52Vikv0niYHHn17mrWpLZW5e5UU4OlgphaX pCTqcnI9hZjgcBoDvRq6CJPskZ7wU0aQJQZrbzwVvqzFYAF3ogzRCwSIdz2TnnJpAJK1 mpIWKI8HoGbQpdERPyeMkI5v7sd8MoQCnSLRTGvEE2GByu+a0U94Yz2kKPhuaC6xCFba Opgw== 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=PkXB7/zPvROo1E4ftAu/MFnpU8KuQKRUXZAonngqnYA=; b=MzHOkU6T7BJsKkKEkVIqPadm2UYJpemRwS2AniUhB2+Xzys+8kHyq1lo4/ZBdMtz0G SLWmzftxs2FpF1dT4Mi6qTvlTzYTWvw0ZAjVK8Ig1FEe+kIkjWpKpr5tftvWCHms5Pv5 NdsZ9V1yyY9RREm6AnVUQ/USxh9HI8gSt2qRbY1t27r6UL5mNR859mIrNkQWPIpG2mZe trELg74jmqIxdgibZF8zzPMcjZgo0ivsRBSi3NUejm4hId9AwQvjLuIx07YTCtzB6otl gbII4GK+ZeJb9QSRlsK/IyHwcxpBJjHgRRjDX1AXi2iEPsLoaM0NHsq34DRVytNhZ9qM QdLg== 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 n11si2832990plg.315.2019.06.26.02.02.44; Wed, 26 Jun 2019 02:03:00 -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 S1726906AbfFZJC2 (ORCPT + 99 others); Wed, 26 Jun 2019 05:02:28 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:60818 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726077AbfFZJC2 (ORCPT ); Wed, 26 Jun 2019 05:02:28 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 0E69C55CB5DA6BC2821E; Wed, 26 Jun 2019 17:02:23 +0800 (CST) Received: from [10.151.23.176] (10.151.23.176) by smtp.huawei.com (10.3.19.208) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Jun 2019 17:02:17 +0800 Subject: Re: [PATCH RESEND] staging: erofs: remove unsupported ->datamode check in fill_inline_data() To: Yue Hu CC: , , , , , References: <20190626032831.7252-1-zbestahu@gmail.com> From: Gao Xiang Message-ID: <038b00d7-fa67-fa86-1b74-b3f58a3788f6@huawei.com> Date: Wed, 26 Jun 2019 17:02:08 +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: <20190626032831.7252-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 11:28, 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 You should add all the 'Reviewed-by' / 'Acked-by' / ... tags from other guyes to the following versions when you resend your patches. 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; >