Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2822461ybd; Thu, 27 Jun 2019 20:51:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0qgjPZ6s8RXNQWmylQ+DSLxO9iDDdZYYxyLi4c+zS7Oyp/Jq2dlQZwiB5yaKBuorwMY2B X-Received: by 2002:a17:90b:d8a:: with SMTP id bg10mr10487662pjb.92.1561693864111; Thu, 27 Jun 2019 20:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561693864; cv=none; d=google.com; s=arc-20160816; b=GQuhw6O/I8FdABOUvywWLRNa6O5SV0gkiG8Yb+jO8PndAI2hKTF1K3g+6WQHe1aSPZ 1dpsVjtbJfigM+E4j4PfyoK28kydP5aX2S7+h7RFjsECyyNwlGA6fsanCG2iE3QYLvva UPIDAu+7RUwkQ5sy2vPOQn1UuHqRmMIIlBog6IAKNVNHVQtal3IPDhAYutz6Ln9kmVb4 zsdiwh4gWgJ7w56LMd/zheMtcOJf7KoEE3AeaIFancnZaiV+KjPU447tmisCQ5PMTy6n GAoMjto9jrM5v1aLoHcaDGyZTBCLdNQnhTGkxnaQQUOqdM06aq3NcW5Xls5bMRF8PAOM gLQA== 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=1hj49yJ1VCEhF86rq0BAUU+exDpjFFrB2JIqdsendtc=; b=ln1VOKNxDKYCkEp/gfMr0o4KqmMRAUjsgpHI3My27y3lSNbCrLojS/B7eLa0GhFM2X GFrSihPLE0V90NDEGAZR3uGwEQ5taFSJ+K0R8dxnDYXzyIGtOxeYqDvwc+RI+Xcd9hyS xgcpa73rfLRPbNsd3ss0k9RGz7w0d+sjwooougV4qM6Xvejz+tSxDU1am+TCizOL12eQ SxTo4FSjlFKcnDzKmQDxStylmBdq0gn1P+n0kdkcABngwVnN4jxIh2aY5ESctS03Z80i 5yU2+EBt5EvKM6XTW+yROmdGISRciChZCo1YPjzzfb24NSAN9uLVHwcR9XUqVrMdID0w +tWw== 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 v7si901120plo.9.2019.06.27.20.50.47; Thu, 27 Jun 2019 20:51:04 -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 S1727132AbfF1Dun (ORCPT + 99 others); Thu, 27 Jun 2019 23:50:43 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:19088 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726748AbfF1Dun (ORCPT ); Thu, 27 Jun 2019 23:50:43 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7CB03DD74085E2E76CE9; Fri, 28 Jun 2019 11:50:40 +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; Fri, 28 Jun 2019 11:50:30 +0800 Subject: Re: [PATCH] staging: erofs: don't check special inode layout To: Yue Hu , , CC: , , , , Miao Xie References: <20190628034234.8832-1-zbestahu@gmail.com> From: Gao Xiang Message-ID: <276837dc-b18a-6f20-fc33-d988dff5ae9f@huawei.com> Date: Fri, 28 Jun 2019 11:50:21 +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: <20190628034234.8832-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/28 11:42, Yue Hu wrote: > From: Yue Hu > > Currently, we will check if inode layout is compression or inline if > the inode is special in fill_inode(). Also set ->i_mapping->a_ops for > it. That is pointless since the both modes won't be set for special > inode when creating EROFS filesystem image. So, let's avoid it. > > Signed-off-by: Yue Hu Have you test this patch with some actual image with legacy mkfs since new mkfs framework have not supported special inode... I think that is fine in priciple, however, in case to introduce some potential issues, I will test this patch later. I will give a Reviewed-by tag after I tested this patch. Thanks, Gao Xiang > --- > drivers/staging/erofs/inode.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/staging/erofs/inode.c b/drivers/staging/erofs/inode.c > index 1433f25..2fe0f6d 100644 > --- a/drivers/staging/erofs/inode.c > +++ b/drivers/staging/erofs/inode.c > @@ -205,6 +205,7 @@ static int fill_inode(struct inode *inode, int isdir) > S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { > inode->i_op = &erofs_generic_iops; > init_special_inode(inode, inode->i_mode, inode->i_rdev); > + goto out_unlock; > } else { > err = -EIO; > goto out_unlock; >