Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5689478pxb; Thu, 20 Jan 2022 02:32:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqnKoBadq6A1Fczp8RMIHbKAppgLFctafcz+Q+R+iaUtOlWeN69POcrSxFXqThUG2sB/mA X-Received: by 2002:a63:385e:: with SMTP id h30mr20429189pgn.16.1642674725579; Thu, 20 Jan 2022 02:32:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642674725; cv=none; d=google.com; s=arc-20160816; b=GdU9cBEOO1z0nFC6IKCjV7bSA7pTSTHTVlIS2tKCWK2lC0ueu6iHWUXAeL4GlkpEGd HxYTUVBKx/XuvLp4VklwBTA1NgcYk7YzsIY21qifbMrCrMmm2Ku/S3gAqa9fwUNjp82k QU6nfrMJeTixjdiGcticgXKaXOpIzojEfeCUKaOQr0JH4VndEU3CYZkd06DH91rVxS4N LLZGJ2d//7d7QW/GbWIePWmGCOh0MHL3dIbtl8Zv1dZsZOtjlYEhT7JSGK8aaGjzesAJ Q4VOyOWeHwQMLHT6DStPi3GNMaW2K2NI/PMzK1THbc6se4BQEUGmz6g7pPWOSDOLaF5B 8DNQ== 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=p1iZa9VfhjNQgrIfbPQL4Pgdvo4iJfcMoYFLX2BLnJ4=; b=LiBp29pTnZNjbWoAVgsWCQhtiQVGMA20RHNDGm/kIv5pe0i3al0jTE5CprQchpZkEl G1YA8b0Ru9+HhSjQBuIvIDsoePb8h4rTkHHioGI485M02G5UBf2Fk+4EU7mXXaBrTZBs ErjGdaVhkD6+I/qIMW7D5yvrHoMECX7q3UfAU5X+0bufikGBJeQOtsU+Nx8S/XzX5F6/ MdpWdbdPCHr2DGU+jb7hILgrQRtg2rr7NUMWh9pb5xJ749gZQTmZuxwqMRuj9foI4sji /IueHdQwNbJj1riM5tq9PQ2uIMf0BrUnihfxfCf5BH6F+vuNANPE7pQQ86XGwvbCLwSH BzFQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mw18si3104411pjb.48.2022.01.20.02.31.53; Thu, 20 Jan 2022 02:32:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242655AbiARNNf (ORCPT + 99 others); Tue, 18 Jan 2022 08:13:35 -0500 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:35728 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242084AbiARNM3 (ORCPT ); Tue, 18 Jan 2022 08:12:29 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;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=12;SR=0;TI=SMTPD_---0V2C1oxt_1642511546; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0V2C1oxt_1642511546) by smtp.aliyun-inc.com(127.0.0.1); Tue, 18 Jan 2022 21:12:26 +0800 From: Jeffle Xu To: dhowells@redhat.com, linux-cachefs@redhat.com, xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org Cc: 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 v2 08/20] erofs: export erofs_map_blocks() Date: Tue, 18 Jan 2022 21:12:04 +0800 Message-Id: <20220118131216.85338-9-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220118131216.85338-1-jefflexu@linux.alibaba.com> References: <20220118131216.85338-1-jefflexu@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 fa7ddb7ad980..f3aa133866e5 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