Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2710229ioo; Sun, 29 May 2022 00:50:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7YJe1aoTNmlb5hMBatTHt9AaHhXhPHcTwHPrwiEUFipRJV+cKQiNP4kO/td0izX/YNzEn X-Received: by 2002:a17:90a:6284:b0:1df:4595:57af with SMTP id d4-20020a17090a628400b001df459557afmr16853253pjj.188.1653810618839; Sun, 29 May 2022 00:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653810618; cv=none; d=google.com; s=arc-20160816; b=1LTNQLdUIdHml6TvoLDxYo31iWWSXpW7DfM7Mrz3i0MH/qdSJf2mgStRvKG9JyqGEo rusdXuWBiDYmvTsBAnBFjyJdKfF4Oj5bhFQ5WPu9vgn8rMTHnunwGeuhZNIvH7nYo/4o rspBxF9AWDkJzjo0/mUQPjFO4orJgINI+gXHYRt5JTnRoCy6u+HMH4J54Np6mLsAwuS2 9DTkgGnic6ZN/jITEpIYrRO8hpTJMDTbWjaDZUor/I55gAA0wtnNDENH2fkJKrhRUKZi fqBUTlLT7x5qORojWQA0YOaIAmag3LkzRi5P7AVF/ORf0y0RgA6Pk1eNq+dF3FA214dt sj4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=UBAFokuzL5MCLEfz0lMEkOsIu8qxwc1fKd3Z3/Qg0ss=; b=0HLxIuD1ZyBlwJpJ6whmBnEsO/j/D7SJbCn0Wz34kkcvZboLn45FK+3EBWJUZn28jA CNjVl64GlrFfldPI+kw5b97LtD5doGwFfxQxo/eCt8ojLYYBQDXaL27LkcdpYl4aSROi gxLRmvFdWBVWqq9VF4e5CgfsfKbCHpokt9lznPvrVqEgoBb6XGnLxNm5pfWqo0fRvpNU gtFfksG13MYGTRNKBddrs8Onnc4siRqx669cEAPC4GuYOrabBf9ZfORGaWSBz+YATD6H a3ik6YPoZZ/2BlK0r1Sj4KfzXYK4NJBkgEo5gTgWf24kNg6enY3mZSTOVcvZFtBbP9ty 2Rpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mARWlsar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a63d24d000000b003c618493a2fsi11579509pgi.798.2022.05.29.00.50.08; Sun, 29 May 2022 00:50:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mARWlsar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229523AbiE2HEd (ORCPT + 99 others); Sun, 29 May 2022 03:04:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiE2HEc (ORCPT ); Sun, 29 May 2022 03:04:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 544C4E22 for ; Sun, 29 May 2022 00:04:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6303760DFA for ; Sun, 29 May 2022 07:04:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E70C0C385A9; Sun, 29 May 2022 07:04:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653807868; bh=g0d7XWj5spS/zSjiU9vUdk8m7L82N5KavPTXtqWaMiU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mARWlsarSRXmB/SNy6OmN3kfPZfy7ryPcBlaboDQ80k8CZHZuU1nFi6YJ+/VQPNx7 OOGenJnZQ8wmC6RaClqZ3q4jhTFI76k7EtVfjEbxVmYvOC28Mc2XohYJAv4olJjRGF RZyb5Dpn9GWPkbrHhr5l5ENGMa1Ktnzh7P2Bqd+tDYRYEp8AKUHlEP3P0OjW73JBnp tAO5+NQ50m1PUM9yR1lXAio8IygVeOgPveePAqmnQzOG6Gee9XHeUTJ55yD7Ls/4ww AkKHIEjE3UdlwdkdorflBrHT3FSblGEukPqgjQgLL9L229jtNqNRhxgnQbd4YScqDa Ke/Zdn6RxtQsw== Message-ID: <5c41e440-93c0-9cf0-9960-446cd5d78837@kernel.org> Date: Sun, 29 May 2022 15:04:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v2] erofs: leave compressed inodes unsupported in fscache mode for now Content-Language: en-US To: Jeffle Xu , xiang@kernel.org, linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org References: <20220526010344.118493-1-jefflexu@linux.alibaba.com> From: Chao Yu In-Reply-To: <20220526010344.118493-1-jefflexu@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/5/26 9:03, Jeffle Xu wrote: > erofs over fscache doesn't support the compressed layout yet. It will > cause NULL crash if there are compressed inodes contained when working > in fscache mode. > > So far in the erofs based container image distribution scenarios > (RAFS v6), the compressed RAFS v6 images are downloaded and then > decompressed on demand as an uncompressed erofs image. Then the erofs > image is mounted in fscache mode for containers to use. IOWs, currently > compressed data is decompressed on the userspace side instead and > uncompressed erofs images will be finally cached. > > The fscache support for the compressed layout is still under > development and it will be used for runtime decompression feature. > Anyway, to avoid the potential crash, let's leave the compressed inodes > unsupported in fscache mode until we support it later. > > Fixes: 1442b02b66ad ("erofs: implement fscache-based data read for non-inline layout") > Signed-off-by: Jeffle Xu > Reviewed-by: Gao Xiang Reviewed-by: Chao Yu Thanks,