Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1839596pxb; Wed, 9 Feb 2022 05:42:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFnqdMTS3UW6nfZB+vpWfrgXjyXZ6yoFC7Q+h4RxOnGgXW+UOrR2EQ1b3v5/RdNleLt0x3 X-Received: by 2002:a05:6a00:1c44:: with SMTP id s4mr2489004pfw.46.1644414148070; Wed, 09 Feb 2022 05:42:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644414148; cv=none; d=google.com; s=arc-20160816; b=kQNdO4A6rV9v7Z7kLrrz0sSMrnWdQuNm+v/hW55iV7XicX3O8/S4L/dlveGJztKMdl n0M2TtF8+3sLk8updtcB7xO1VyrgrO60qzh47b7QT9cMV6iJjQ06i5w99UV1pL9D0EFy d4xunFc8XYaC3WDQkUkE+zopn8cBFNgx+RIprLiI3cx37s1HoDKnFVPTTg0BS3NBKWy6 ktWDjrCzfGJEN2LBKIS93GC5tvr5or/k56ibzBdDHu4mBk60fsSH7sM7QWwN5fd7gRFz GOSqbQcokiFOUs9KM0ky8+i738KOFDAXfp+UqOJO7RWwCSdQXYv83Q1nt6tZgIeaQKHO itMg== 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=EyXxo4D+kt2x9JB+HfCLkAdfRygPyGxAEau5ese/ZebjEICLWVJ7wW0AiJtwgz5q+5 n+hLBXFPUnbHIzQapM7cr60V+z/NemUfSwOFuU2TY7de3V6w9HCTcl3oAFO5otk3Oubj X3ZhA4WiWC4RHl2yi0i8mnP94ZiipPpxXMz2GzvYPkN62vIQLmlJt16KQhLX6ay/srY1 h8Zyh2cAp/fe3Z4L6JxP0GqjghlsSWZkWax9c1EP/pMvhP6YPMJv2eozfxFjLXKe0eTK IKMgmRAUkxuM4NvSkAJY/IXdf83iHoxruwekKkpyXuSuKOavIA0xT7Z7loIHl92ubwx8 EmzA== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g66si6135721pgc.25.2022.02.09.05.42.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:42:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7AD58E143A8C; Wed, 9 Feb 2022 02:24:37 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235196AbiBIGBd (ORCPT + 99 others); Wed, 9 Feb 2022 01:01:33 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:52000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234755AbiBIGBT (ORCPT ); Wed, 9 Feb 2022 01:01:19 -0500 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13ABEC050CC0; Tue, 8 Feb 2022 22:01:22 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0V3zaQRs_1644386477; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0V3zaQRs_1644386477) by smtp.aliyun-inc.com(127.0.0.1); Wed, 09 Feb 2022 14:01: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 v3 07/22] erofs: export erofs_map_blocks() Date: Wed, 9 Feb 2022 14:00:53 +0800 Message-Id: <20220209060108.43051-8-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220209060108.43051-1-jefflexu@linux.alibaba.com> References: <20220209060108.43051-1-jefflexu@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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