Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1481650rwi; Fri, 14 Oct 2022 20:22:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6YQN7Am4TdfEZ6d/dQBD4GhRhN0nTAW2w8JdQom0buxKo6HkMBb4grcaVsGGdG7JVVg+cZ X-Received: by 2002:a17:902:7fc6:b0:185:428c:b9c0 with SMTP id t6-20020a1709027fc600b00185428cb9c0mr1016525plb.116.1665804160085; Fri, 14 Oct 2022 20:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665804160; cv=none; d=google.com; s=arc-20160816; b=CR3gcUmJNUpd/1PO3F4l5Vl7QQRN/NrnWbHh5olwkd03STFWcZwdYujyDf09cY6Fdl JPULAw+pwZeIHtJa4no0RLWtSAbJnhsW2oaCSXQI1XC8Q2OcKv7BdY8njfcEGmWgcaCh Nvr2nTyXSHYLO9hYrz5FRPv6U5hfiQEJnhNXIImDpKdOB/YOryyBV9UxugQXZRkL/MsN NMAlWWhAa5gZMLMLObU2OfWIf1o2ebgSi5nbvzgklIwsbvcepMf/IjIC8bBXNcBnRDDk GOU4SrxsaAmJhD0L8unmXTLOSI9Hr1gL245l//Zc0uLxcjocOT2eywOgoRiKo7h5Se/Y XPrw== 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=FM8pzQoKF4Sn6Nyy8OFUQzgVq3cw+7lD4l4rTzeNsdk=; b=CEQZCT2EurTUETzNw2ELFngBvfR94lgCEgWf/ylHXWP+EP7W6Bwv5NnA0kRCXqyuYm oQ7cEeXp2x82Gy3QE+c/dkxeEUPB7Wm5slSjakzrc4SI2/QClJBIFvu+Xda5YNsoyCil khFFvZYip/15YE8CCFVot5yjxvtihowOSY8t/U6Qx+t8u2QvzZgj72RS4LaGzF6WaHZ7 OcY4F3GLmxV3tv9kn2f4fEtr9yihcCsl6ig946X+TpeTuTyGXGm9e7ZBNkfdTTVrmewa 7YzFLT8xrMdPivQ++HyaioRIzvIz1Xzj1FtPaebh0gfp6jXph0V4oD6a9AK5cDQy2C9f VwOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MvXRlz+l; 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 k14-20020a633d0e000000b00439d86cf509si5222461pga.645.2022.10.14.20.22.08; Fri, 14 Oct 2022 20:22:40 -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=MvXRlz+l; 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 S229665AbiJOCuI (ORCPT + 99 others); Fri, 14 Oct 2022 22:50:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229594AbiJOCuG (ORCPT ); Fri, 14 Oct 2022 22:50:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EE1A3B46A for ; Fri, 14 Oct 2022 19:50:05 -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 383CF61BD4 for ; Sat, 15 Oct 2022 02:50:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED403C433C1; Sat, 15 Oct 2022 02:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665802204; bh=DC9cQh2iywyg4Y6PZKDaIDzvavBQlm9a/fexbxAjr0Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=MvXRlz+lKRXYZ7f+hCajHWH7xh9Y4gXeXKX9s+H1pNwHPsC4uB2l46ONHV14DU0om XzUxnKE4QH4KTo4LCkTUO+/z16stjftGzUPAgNQ79gq7pIeBeYHY/aOQ5iArUMfebk yg6FaVw22RVhjDPUlOJnvvmEsH2CQAKTNJI5qyTqlg9WJyhrY2UkTO4yglKa6QlPvA 3VvdQlDqzxIyOz1VXT4NfUZsPGLcnpb2Ini9CnvgekVAQBJOlyzyIbuYeywWUKnzzJ lq8wnYJE85BEUOH5zX3vZvQU8f/4HKNxf/YtTS4o9FSnVrSqEoJYM2MkfsutOMhxv5 hUGd10phwRMqw== Message-ID: Date: Sat, 15 Oct 2022 10:50:02 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH] erofs: shouldn't churn the mapping page for duplicated copies Content-Language: en-US To: Gao Xiang , linux-erofs@lists.ozlabs.org Cc: LKML References: <20221012045056.13421-1-hsiangkao@linux.alibaba.com> From: Chao Yu In-Reply-To: <20221012045056.13421-1-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.0 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 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/10/12 12:50, Gao Xiang wrote: > If other duplicated copies exist in one decompression shot, should > leave the old page as is rather than replace it with the new duplicated > one. Otherwise, the following cold path to deal with duplicated copies > will use the invalid bvec. It impacts compressed data deduplication. > > Also, shift the onlinepage EIO bit to avoid touching the signed bit. > > Fixes: 267f2492c8f7 ("erofs: introduce multi-reference pclusters (fully-referenced)") > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,