Skip to content

Commit 94d7894

Browse files
lostjefflehsiangkao
authored andcommitted
erofs: make erofs_map_blocks() generally available
... so that it can be used in the following introduced fscache mode. Signed-off-by: Jeffle Xu <[email protected]> Reviewed-by: Gao Xiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Chao Yu <[email protected]> Signed-off-by: Gao Xiang <[email protected]>
1 parent 99302eb commit 94d7894

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fs/erofs/data.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ static int erofs_map_blocks_flatmode(struct inode *inode,
110110
return 0;
111111
}
112112

113-
static int erofs_map_blocks(struct inode *inode,
114-
struct erofs_map_blocks *map, int flags)
113+
int erofs_map_blocks(struct inode *inode,
114+
struct erofs_map_blocks *map, int flags)
115115
{
116116
struct super_block *sb = inode->i_sb;
117117
struct erofs_inode *vi = EROFS_I(inode);

fs/erofs/internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ void *erofs_read_metabuf(struct erofs_buf *buf, struct super_block *sb,
461461
int erofs_map_dev(struct super_block *sb, struct erofs_map_dev *dev);
462462
int erofs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
463463
u64 start, u64 len);
464+
int erofs_map_blocks(struct inode *inode,
465+
struct erofs_map_blocks *map, int flags);
464466

465467
/* inode.c */
466468
static inline unsigned long erofs_inode_hash(erofs_nid_t nid)

0 commit comments

Comments
 (0)