Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp175034pxb; Thu, 7 Apr 2022 02:28:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXsz/qUQOC9X0AY5sjJ30FJDtkvEwofWG9rHhXHm3cNpBAXiXxBciyHL0031QDZs3xaLOE X-Received: by 2002:a17:906:9755:b0:6e4:b9da:2e2a with SMTP id o21-20020a170906975500b006e4b9da2e2amr12905390ejy.755.1649323696042; Thu, 07 Apr 2022 02:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649323696; cv=none; d=google.com; s=arc-20160816; b=P1LF/Q4D8lqPFpRneLAzOw7pvRbDTUT5FWj9YFPxhCdWTuW4sgjDjGGNElTL+GWA4u xI/bHQOcP/R3aUL+1ioW4IswZmSwcgdoVgh6QBb0vcjJfU+NxYLZeBZo/wckcvYnUZ11 ZL6vCzt7bcpNXOOTx4osnumT0L09LOLMcwy/zlfkVyVxCCevDk+sp3E/vgHTOFqzFGfg IpiNOvyP6xi3Lw0Ln8/owSK3qwy+wdoRyWflGlvtVWH+hT2Oyuj8U1sCUC39vxx5SVG2 WtwaFwIk6da9GkGsr71zbQn0Cb/whjbyKF52Z1D0Z1JC3GeGwXSpahRPDDmHmyqnukV6 mdZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=TtwlabMruUw7IeHpk/wzrTo7PZH3e4GZmTcnoTw858g=; b=YWMV2zdbju7plnNHOWtLRUcS6LNetu7Nv3hdjByOMCpkSeWlZTpamm4yds6iiqrbRS 9wNLHLr4xxGL2p+SvLjjIgT7Ji0ddsCceJn9M4xoDWZb/Ey79mueDIiWFjf6SDyhXkzy k7Zy9Nkb3p2xDwwPhDvMoJWMt7DDRDQKA40ISilfWu5z4uN6GOM1vKkPASOemaGA+T86 JetqthFTVoDwtduivd7zmaXQ67z45ZVcN0afsfCyoGDnBjAJJl6zMeRNGfTPGH7zmJ/1 wPUaReqo3EI3lstJwVTSct/++NdDT8Dds6oenjc4W33MGUdCmEVZhF9y8tTtxu4Yjr72 q7wA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a170906854200b006e7ee0a9f54si9181392ejy.377.2022.04.07.02.27.39; Thu, 07 Apr 2022 02:28:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233239AbiDGCq7 (ORCPT + 99 others); Wed, 6 Apr 2022 22:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232879AbiDGCq4 (ORCPT ); Wed, 6 Apr 2022 22:46:56 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE02020D535; Wed, 6 Apr 2022 19:44:56 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0V9O8VBd_1649299490; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0V9O8VBd_1649299490) by smtp.aliyun-inc.com(127.0.0.1); Thu, 07 Apr 2022 10:44:52 +0800 Date: Thu, 7 Apr 2022 10:44:50 +0800 From: Gao Xiang To: Jeffle Xu Cc: dhowells@redhat.com, linux-cachefs@redhat.com, xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org, torvalds@linux-foundation.org, gregkh@linuxfoundation.org, willy@infradead.org, linux-fsdevel@vger.kernel.org, joseph.qi@linux.alibaba.com, bo.liu@linux.alibaba.com, tao.peng@linux.alibaba.com, gerry@linux.alibaba.com, eguan@linux.alibaba.com, linux-kernel@vger.kernel.org, luodaowen.backend@bytedance.com, tianzichen@kuaishou.com, fannaihao@baidu.com Subject: Re: [PATCH v8 08/20] erofs: make erofs_map_blocks() generally available Message-ID: Mail-Followup-To: Jeffle Xu , dhowells@redhat.com, linux-cachefs@redhat.com, xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org, torvalds@linux-foundation.org, gregkh@linuxfoundation.org, willy@infradead.org, linux-fsdevel@vger.kernel.org, joseph.qi@linux.alibaba.com, bo.liu@linux.alibaba.com, tao.peng@linux.alibaba.com, gerry@linux.alibaba.com, eguan@linux.alibaba.com, linux-kernel@vger.kernel.org, luodaowen.backend@bytedance.com, tianzichen@kuaishou.com, fannaihao@baidu.com References: <20220406075612.60298-1-jefflexu@linux.alibaba.com> <20220406075612.60298-9-jefflexu@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220406075612.60298-9-jefflexu@linux.alibaba.com> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Wed, Apr 06, 2022 at 03:56:00PM +0800, Jeffle Xu wrote: > ... so that it can be used in the following introduced fscache mode. > > Signed-off-by: Jeffle Xu Reviewed-by: Gao Xiang Thanks, Gao Xiang > --- > fs/erofs/data.c | 4 ++-- > fs/erofs/internal.h | 2 ++ > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/fs/erofs/data.c b/fs/erofs/data.c > index 780db1e5f4b7..bc22642358ec 100644 > --- a/fs/erofs/data.c > +++ b/fs/erofs/data.c > @@ -110,8 +110,8 @@ static int erofs_map_blocks_flatmode(struct inode *inode, > return 0; > } > > -static int erofs_map_blocks(struct inode *inode, > - struct erofs_map_blocks *map, int flags) > +int erofs_map_blocks(struct inode *inode, > + struct erofs_map_blocks *map, int flags) > { > struct super_block *sb = inode->i_sb; > struct erofs_inode *vi = EROFS_I(inode); > diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h > index 5298c4ee277d..fe9564e5091e 100644 > --- a/fs/erofs/internal.h > +++ b/fs/erofs/internal.h > @@ -486,6 +486,8 @@ void *erofs_read_metabuf(struct erofs_buf *buf, struct super_block *sb, > int erofs_map_dev(struct super_block *sb, struct erofs_map_dev *dev); > int erofs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, > u64 start, u64 len); > +int erofs_map_blocks(struct inode *inode, > + struct erofs_map_blocks *map, int flags); > > /* inode.c */ > static inline unsigned long erofs_inode_hash(erofs_nid_t nid) > -- > 2.27.0