From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 096B6C4338F for ; Thu, 19 Aug 2021 03:46:22 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5772260F4C for ; Thu, 19 Aug 2021 03:46:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5772260F4C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GqrKS0sflz3bXm for ; Thu, 19 Aug 2021 13:46:20 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=jyrL+b0D; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=chao@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=jyrL+b0D; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GqrKN5jB6z307D for ; Thu, 19 Aug 2021 13:46:16 +1000 (AEST) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0897B60F4C; Thu, 19 Aug 2021 03:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629344774; bh=0PWjpf7jKGNN5Wc86CUKn91Ytncf9Qqhm1wOt5aMf+I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=jyrL+b0DzU+lE7vMa68BjDE/2NRLd8phHfQE3f6VYn/QR7k20sQ/nhxsU9HlP+6Rc Xq7LcA7EiG/+x7kWzh/xY+uGofQ8bYgDE4w9gJ4488+NSPn8HTQ08crMcfgx+qcGph BkBrgN3QGzIFiMC49NBemW6mp/jljeSx0/as8BB2jzv/E61EuceG0rZsBdX1jKyaFg Dvxlg8jXih9ctztWVDVvbqYmOo60CnPgJYfTeiSFiaKxn/CN/afaxljQiyaOcYYP0O ig0WXEFK6fyGHzpTbOW1YyaA3CWUZnO0wcVxS8x7JleTelk7XykqcPbbzAY+Wwy2kx ODlwL0qPywDwQ== Subject: Re: [PATCH 2/2] erofs: support reading chunk-based uncompressed files To: Gao Xiang , linux-erofs@lists.ozlabs.org, Liu Bo References: <20210818070713.4437-1-hsiangkao@linux.alibaba.com> <20210818070713.4437-2-hsiangkao@linux.alibaba.com> From: Chao Yu Message-ID: <2c833d7e-9f82-f1f7-a576-b9fc50e0cb15@kernel.org> Date: Thu, 19 Aug 2021 11:46:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210818070713.4437-2-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joseph Qi , Eryu Guan , Liu Jiang , LKML , Peng Tao Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" On 2021/8/18 15:07, Gao Xiang wrote: > + else if (vi->datalayout == EROFS_INODE_CHUNK_BASED) > + /* fill chunked inode summary info */ > + vi->chunkformat = __le16_to_cpu(die->i_u.c.format); le16_to_cpu(), > kfree(copied); > break; > case EROFS_INODE_LAYOUT_COMPACT: > @@ -160,6 +163,8 @@ static struct page *erofs_read_inode(struct inode *inode, > inode->i_size = le32_to_cpu(dic->i_size); > if (erofs_inode_is_data_compressed(vi->datalayout)) > nblks = le32_to_cpu(dic->i_u.compressed_blocks); > + else if (vi->datalayout == EROFS_INODE_CHUNK_BASED) > + vi->chunkformat = __le16_to_cpu(dic->i_u.c.format); Ditto. Thanks,