Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37062100rwd; Tue, 11 Jul 2023 09:00:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlFDtDW0RZTtUMStO21YQMRrJAIN+0b0TTGuixbm4BFLU/LSYKKLcQz4ac2/A5lSZV+a9kMS X-Received: by 2002:a05:6a20:3d85:b0:12c:9100:362f with SMTP id s5-20020a056a203d8500b0012c9100362fmr20445138pzi.4.1689091216522; Tue, 11 Jul 2023 09:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689091216; cv=none; d=google.com; s=arc-20160816; b=kn0So5uoj+tssYG3EtSKp6+VREl2m/pIXDyMEZMXOp/C7jmCqMmIhEesqP9OUKH4Gn y5IEs97dMLTP6ME3f4r17LdZS2hWj2DNYvZ7K0sLuTnpihihGet2GIVQAw1HTBFyP8hY eFV9sTK16y4NHdskQicSkLaFaAw714BwkrpIE6EbulS0xLt1bzS2FDbD8ZHKXAwg3S2u FppyENT25DJVeP8rN1knU9MPfORFkt7VJqgi8LF32rRjlB3Tm9Pk/hes8Aiy0kDEteyc phmHZo9TMIsy5QMDPj2pJSWx9sdnlbCUzYfZmc1K4Q9MHD4V0jG+iv1khoDIcYgOXbTA 5+IA== 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=1brkqWcUIQXFwJu2lFYqP6okRb0ziy3YAGZG4XQCfCs=; fh=MUrXDV1Qh2vbRkt1UZ2m7wto3prWU9PrdnqcIPiZH/A=; b=M0xfG9VMsxDqhgEcVuqhN5QEFctpSYs+NP59ad40gzONfRo3nmVzg4s0q5rwfkznbS mSa1V0i9yLDAzbHOnxOofX9VHJwjP/lqeaE9CLqe02Ah67neBWC+FGSEsF0HFCIX06mh KsEGkjTKzK8Lw/hwMMSIafGM7+kisonQXwWIrIjILEhK82twNikkItVKlOXa//nCO3fX cpvKpuXkzqLhXJoHAV9b3uxawKvLa+pql4i7OLVaAd7zUlzDJD1/DUtJqXcdUYLTlV/A 3g4zMfJfK3lPBgwOhC5cXYrPYJHKmetGAfp5F1zgK5iuyju0bmbf+6pMDYWep5o8RGZ0 Xb2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="AFUTQ/vf"; 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 eg6-20020a056a00800600b00675e1bc6133si1676271pfb.47.2023.07.11.09.00.03; Tue, 11 Jul 2023 09:00:16 -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="AFUTQ/vf"; 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 S232520AbjGKP2V (ORCPT + 99 others); Tue, 11 Jul 2023 11:28:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232048AbjGKP2Q (ORCPT ); Tue, 11 Jul 2023 11:28:16 -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 3448B10FD for ; Tue, 11 Jul 2023 08:28:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B23E86155E for ; Tue, 11 Jul 2023 15:28:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75584C433C9; Tue, 11 Jul 2023 15:28:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689089289; bh=245DlscCQ+6MIO/PrS2VsppGM4QHcezpBj0+leo6GaQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=AFUTQ/vfJT0QBPWWlpBs0UwtalY9+e+2JXnefqaz2aKS0rteQ1jJc7I1JNVHvvr27 DfX30pnysioQlfqfAVprFNFcym7h79qLYCLFqPk7SHNQPR13DP8sZr6I7FN7jt0cF1 2BlOU+oDoDbws9fQy7rwENnnWjJKDZjVmAZo1MzQxloPoIo17d8ZebVThUMhRd4ImM tuBFCixobirvrBNejOpBJE97gWMhUvv6VfK7roDLxBglqGxQuhBvq6Fb+Uj/WHk4Mr yRefCk6JCgI9anDUngn0xieDjJjzVu/JYTLH50qUi7pJCDPvwc4TauOMnQiZ9gwdBI cZ17HYGtJMTGQ== Message-ID: <8e196b07-6cb5-0bc7-bcb1-7239144f7975@kernel.org> Date: Tue, 11 Jul 2023 23:28:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 2/2] erofs: simplify z_erofs_transform_plain() Content-Language: en-US To: Gao Xiang , linux-erofs@lists.ozlabs.org Cc: LKML References: <20230627161240.331-1-hsiangkao@linux.alibaba.com> <20230627161240.331-2-hsiangkao@linux.alibaba.com> From: Chao Yu In-Reply-To: <20230627161240.331-2-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 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_MED,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 2023/6/28 0:12, Gao Xiang wrote: > Use memcpy_to_page() instead of open-coding them. > > In addition, add a missing flush_dcache_page() even though almost all > modern architectures clear `PG_dcache_clean` flag for new file cache > pages so that it doesn't change anything in practice. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,