Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3819000rdb; Mon, 11 Dec 2023 00:11:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0Jiwkfcz22KPo9Ma0Jn0z8RwlxvEWRXRCay3aG/OXNpfQGTSLpiLAeFcEsDZeKX8yo9Gn X-Received: by 2002:a05:6359:4588:b0:170:4035:4fb1 with SMTP id no8-20020a056359458800b0017040354fb1mr2531338rwb.18.1702282270124; Mon, 11 Dec 2023 00:11:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702282270; cv=none; d=google.com; s=arc-20160816; b=HCuchNkQfY8hB3GdVvnRfpXNo+ngQLg2efpr5xA+C+00OR2DzDtbUYl42m17ZvUG4K bWs3sov7y7Q47apmMSqsXAq1/tCab5yeyoBaIfruriSpvjyI+KLKjDQJ/qsddvyj3c39 Zwy9J1P5blO0+XSIWe4cYplfmHEtRsHPnXX+jvnnV4832AeJImQL036nOvVCJCQuvbC1 N05r56M3mdBNgaBZURKIeiErzcg9oOBFxIFRxUX5BJdCU1NPSurzfod/YW22YwlDhEOL FDdbzbHzOMKG7/8xxodfn8c+CQ3zALQgA5se7ixH7WW0fL7IiAAJGr5NNRCoU79AE5xY 1raQ== 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:subject:user-agent:mime-version:date:message-id; bh=Ok2kqcLTBsZOFVOwEeloEeSz1A+0XXtBDJbwlv7dKp4=; fh=nKH/I+l97x0u7AFRRVYbSNXz1qX0IwUz8vxvKS6fSIk=; b=bn7+zm0stLoL1LEwm0RWTSWepjxkKyUwQOpm5FwfGHxOpNyxDUZoRmdPHdvQZZYzSN deceomo6eXGlNrphdzYMoDmJnYdu35y2nHtABX7MHMkQB3iac1e8aLyUYkuUesV1x+1+ FDBpAu3+wA9CGqatHgorKwYfrhWicZVLM5t04EzFfyTs1ll8Am4A8NTLiokngpCghWWr YT8Ae1+taLYxtFZjL/ZajVRRNF/hfJ7otahdmNQOExT2y9PH8my0sZ6Wo129rs0PQPeK 7bGiJaGg8+0cKLpfnEPd1CXy666dZax4m7p4GN+W1srR2mcd+FozY2WWjM/zXQlUs4eu whYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bf15-20020a656d0f000000b005c1ce3c9628si5751713pgb.752.2023.12.11.00.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 00:11:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 91B238080E2D; Mon, 11 Dec 2023 00:11:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbjLKIKy (ORCPT + 99 others); Mon, 11 Dec 2023 03:10:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233910AbjLKIKt (ORCPT ); Mon, 11 Dec 2023 03:10:49 -0500 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B581DD5 for ; Mon, 11 Dec 2023 00:10:54 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VyDC938_1702282251; Received: from 30.97.48.179(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VyDC938_1702282251) by smtp.aliyun-inc.com; Mon, 11 Dec 2023 16:10:52 +0800 Message-ID: <9fd5a85e-2521-4295-938b-bedb9ee1b67b@linux.alibaba.com> Date: Mon, 11 Dec 2023 16:10:51 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/5] erofs: support I/O submission for sub-page compressed blocks To: linux-erofs@lists.ozlabs.org Cc: LKML , dhavale@google.com, Yue Hu References: <20231206091057.87027-1-hsiangkao@linux.alibaba.com> <20231206091057.87027-2-hsiangkao@linux.alibaba.com> From: Gao Xiang In-Reply-To: <20231206091057.87027-2-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 11 Dec 2023 00:11:07 -0800 (PST) On 2023/12/6 17:10, Gao Xiang wrote: > Add a basic I/O submission path first to support sub-page blocks: > > - Temporary short-lived pages will be used entirely; > > - In-place I/O pages can be used partially, but compressed pages need > to be able to be mapped in contiguous virtual memory. > > As a start, currently cache decompression is explicitly disabled for > sub-page blocks, which will be supported in the future. > > Signed-off-by: Gao Xiang ... > + cur = mdev.m_pa; > + end = cur + pcl->pclusterpages << PAGE_SHIFT; In this patch, here should be end = cur + (pcl->pclusterpages << PAGE_SHIFT); but since this line will be immediately updated in the next patch as `end = cur + pcl->pclustersize;` so it will have no impact. I've fixed it up in the development tree. Thanks, Gao Xiang