Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3657126pxu; Tue, 8 Dec 2020 19:02:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUtJkeT6yrftDTHE6jEL8wlES56I8vrylEBR4whwgHIP+Bh5PEUd5PrSVn31hnaklONDtp X-Received: by 2002:a17:906:a3c7:: with SMTP id ca7mr317553ejb.523.1607482920013; Tue, 08 Dec 2020 19:02:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607482920; cv=none; d=google.com; s=arc-20160816; b=ahoCvtblUxwAtFDV6r/L8/h4pGNcJ4YI4cye7GCb5IeX3S3gcau6YAEf/mY2/TxCIj mvkaSzO4wYYg8CXx6PgGwykINsC5xJPN1d1g+LAnSn4+xRcYbseME8FNWSIVOrWnjzE1 hKf71M+/Md8mC17faGdUgQxGWE+/EhedljWD6WdaM5tYxKyyhMszjOQNgvTccj7WDmrP pyup6NYc/Ab0dd7oZSh9lU1qzifevjZlz+ZdS+woF/uYVdSjwlCe20UIu6fYLMS/v6Wf pwpboMCO0B8pu28uxP3R/By5S82+ZL47WbcLXFuyj3gHqYygX/CqouwMwlXtfKUYZ/Fq 7GAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=rbe+Jfg72t+z5qFkXJrFaagaIKxU1ChW3GaVEoj7BWA=; b=E4V6eDHXVKzA4dc85xwC0Xl8rMPrPo5ctY4+ZE1eBoNd3yYHso3/4fK5Zxq9J5YuPj 5yDM4VlP7omTE2JL2FZ0od75i5gZUBs6zb0I3gJ9m/GHZ3r4ZptHMttXYQOZ2h8wSZSw NqbiPFLWMM5iaL9SaRVtC30BZv8CkKPtPkcg/UiG/Zz0BlH0SoNekbUBqXyujBei4TWm AKU1mm6b8YTagyXwk9z2A95tXhebAQt664OHv4shXAip2xQm7NSWfUizFRcdBa4sxP7b AT1xz/ZxJQhM6ZgOWX+hl/k87P+DCMtFR62UJej5JYlSgq90GS5xXoyIF3KJmhXDUxlK bR2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a18si46881ejr.512.2020.12.08.19.01.37; Tue, 08 Dec 2020 19:02:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727089AbgLIC5F (ORCPT + 99 others); Tue, 8 Dec 2020 21:57:05 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:9399 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbgLIC5F (ORCPT ); Tue, 8 Dec 2020 21:57:05 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CrM9z2SZLz7BgZ; Wed, 9 Dec 2020 10:55:51 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.213) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 9 Dec 2020 10:56:20 +0800 Subject: Re: [PATCH v3] erofs: avoiding using generic_block_bmap To: Gao Xiang , Huang Jianan CC: , , , References: <20201208131108.7607-1-huangjianan@oppo.com> <20201209024415.GA33948@xiangao.remote.csb> From: Chao Yu Message-ID: Date: Wed, 9 Dec 2020 10:56:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20201209024415.GA33948@xiangao.remote.csb> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/12/9 10:44, Gao Xiang wrote: > Hi Jianan and Chao, > > On Wed, Dec 09, 2020 at 10:34:54AM +0800, Huang Jianan wrote: >> >> 在 2020/12/8 21:11, Huang Jianan 写道: > > ... > >>> - >>> static sector_t erofs_bmap(struct address_space *mapping, sector_t block) >>> { >>> struct inode *inode = mapping->host; >>> + struct erofs_map_blocks map = { >>> + .m_la = blknr_to_addr(iblock), >> >> Sorry for my mistake, it should be: >> >> .m_la = blknr_to_addr(block), >> > > Sigh, since my ro_fsstress doesn't cover bmap interface... I mean do we need > to add some testcase for this? (But it needs to be fixed anyway, plus this patch > looks good to me....) > > Hi Chao, > could you kindly leave some free slot for this patch and > > erofs: force inplace I/O under low memory scenario > https://lore.kernel.org/r/20201208054600.16302-1-hsiangkao@aol.com Will review soon. :) Thanks, > > Since I'd like to merge these all for 5.11-rc1 (so we could have more time to > test until the next LTS version), since 5.10 is a LTS version, I tend to not > introduce any big modification (so in the past months, "erofs: force inplace > I/O under low memory scenario" never upstreamed at all.) > > Thanks, > Gao Xiang > > > . >