Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2275230pxp; Mon, 7 Mar 2022 11:49:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZ3bA4bVITxKYwsh8baoCALCgK55cmlEaTP+A/3+Q6eXHA12b7D2BaV15vz/pgmMHoCEMj X-Received: by 2002:a17:907:6296:b0:6da:64ee:1031 with SMTP id nd22-20020a170907629600b006da64ee1031mr10208352ejc.601.1646682559210; Mon, 07 Mar 2022 11:49:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646682559; cv=none; d=google.com; s=arc-20160816; b=Iv4EqvlORlGfx4WMBoU0hdBuBJfVWDqH+BZsCIaIIsE9m4Lq6/ZWHLs+ncr0Fmk3Qb owZcemCSnYgQShIp4AaPKDXyVqkR/DTSRVlsPLCBuCY5b/sE2hbE099ksuksseJ61IB7 Lk8zAOUDu1TfYIEfqaUoFpOCSVM6nYC5rjB1V8xDeG15zDdYchB7DBNxbYi+vrkI7Cah ovbDAl4jkil0sYeO86RiEWB3t5ASEpDBQM+toyNLa/kJ7O051+XfPybINDjBhGBZqVvl N/CjdQV1teAvlNmsJkRj79V4p+6wwYgwg9HZJjbw2fcQE7p0ZgENN4/owEobknT9WWVr 977w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=APmDyP7qZ6GlNbdD0RzkNgoP8utgo2+lrGC/3E5RCAQ=; b=pAkWgo9i/qXrg3nOHnoJWL4wUd4hyIrveWMol/ToV72xDyoSCoEaSSTKFvOwbRc67K RVejlxSc3wXp+hkL10SGGWLpKEKT3AloJVPgormxXMgY2xqxsCaQaVGZeiHNsRorQSuI t47cdN9w5BQIt2KL+il4jOhxcbBUhtNV/SNL+FK599pYU1MiL3Br5F5LrI53+vFahLhv DDcAwyzJrNBh0SnrMvrcjIUaj95SP/t0zlfc2kEue93UWNu8jM/Wr5Exs2/+F3L5si0y S+Tr+Rk2Qzct20wvz1b5ZPSqbks3PUmoXUoKEsfST6D/rH+DcwUpyZA0WDyyfUXgnarE TR/Q== 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 ky9-20020a170907778900b006d0dee152d3si8435460ejc.101.2022.03.07.11.48.55; Mon, 07 Mar 2022 11:49:19 -0800 (PST) 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 S242407AbiCGMeq (ORCPT + 99 others); Mon, 7 Mar 2022 07:34:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242316AbiCGMeQ (ORCPT ); Mon, 7 Mar 2022 07:34:16 -0500 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9E6E3EAB0; Mon, 7 Mar 2022 04:33:21 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0V6VlXwW_1646656397; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0V6VlXwW_1646656397) by smtp.aliyun-inc.com(127.0.0.1); Mon, 07 Mar 2022 20:33:18 +0800 From: Jeffle Xu To: dhowells@redhat.com, linux-cachefs@redhat.com, xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org Cc: 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 Subject: [PATCH v4 08/21] erofs: export erofs_map_blocks() Date: Mon, 7 Mar 2022 20:32:52 +0800 Message-Id: <20220307123305.79520-9-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220307123305.79520-1-jefflexu@linux.alibaba.com> References: <20220307123305.79520-1-jefflexu@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 ... so that it can be used in the following introduced fs/erofs/fscache.c. Signed-off-by: Jeffle Xu --- 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 226a57c57ee6..6e2a28242453 100644 --- a/fs/erofs/data.c +++ b/fs/erofs/data.c @@ -104,8 +104,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 b8272fb95fd6..f9f94d63d40f 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -484,6 +484,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