Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87BAEC636CC for ; Fri, 3 Feb 2023 05:55:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232088AbjBCFzz (ORCPT ); Fri, 3 Feb 2023 00:55:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbjBCFzx (ORCPT ); Fri, 3 Feb 2023 00:55:53 -0500 Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 666B966012 for ; Thu, 2 Feb 2023 21:55:52 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VandA8f_1675403748; Received: from 30.221.129.149(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VandA8f_1675403748) by smtp.aliyun-inc.com; Fri, 03 Feb 2023 13:55:49 +0800 Message-ID: <9d14321a-2406-df05-0401-699547c1b12d@linux.alibaba.com> Date: Fri, 3 Feb 2023 13:55:48 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 3/3] erofs: call erofs_map_dev() inside erofs_map_blocks() Content-Language: en-US To: Gao Xiang , xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org, huyue2@coolpad.com Cc: linux-kernel@vger.kernel.org References: <20230203035303.35082-1-jefflexu@linux.alibaba.com> <20230203035303.35082-4-jefflexu@linux.alibaba.com> From: Jingbo Xu In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/3/23 1:52 PM, Gao Xiang wrote: > > > On 2023/2/3 11:53, Jingbo Xu wrote: >> For now erofs_map_blocks() is always followed by erofs_map_dev(). >> Make erofs_map_dev() called inside erofs_map_blocks() to reduce code >> duplication. > > Could we just integrate mdev into struct erofs_map_blocks? Okay I will give it a try. > > BTW, I still think erofs_map_dev() is useful since it can handle > non-inode IO requests, so let's keep this rather than mergeing all > code into erofs_map_blocks() Yeah erofs_map_dev() is kept as a separated function API. -- Thanks, Jingbo