summaryrefslogtreecommitdiffstats
path: root/fs/erofs/internal.h
diff options
context:
space:
mode:
authorYue Hu <huyue2@yulong.com>2021-03-25 08:10:08 +0100
committerGao Xiang <hsiangkao@redhat.com>2021-03-29 04:19:53 +0200
commit8137824eddd2e790c61c70c20d70a087faca95fa (patch)
tree24e1ada29ebc6deb9c818d367bf7adc47908acbc /fs/erofs/internal.h
parenterofs: complete a missing case for inplace I/O (diff)
downloadlinux-8137824eddd2e790c61c70c20d70a087faca95fa.tar.xz
linux-8137824eddd2e790c61c70c20d70a087faca95fa.zip
erofs: don't use erofs_map_blocks() any more
Currently, erofs_map_blocks() will be called only from erofs_{bmap, read_raw_page} which are all for uncompressed files. So, the compression branch in erofs_map_blocks() is pointless. Let's remove it and use erofs_map_blocks_flatmode() directly. Also update related comments. Link: https://lore.kernel.org/r/20210325071008.573-1-zbestahu@gmail.com Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Yue Hu <huyue2@yulong.com> Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
Diffstat (limited to '')
-rw-r--r--fs/erofs/internal.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h
index 30e63b73a675..db8c8470269e 100644
--- a/fs/erofs/internal.h
+++ b/fs/erofs/internal.h
@@ -289,7 +289,7 @@ extern const struct address_space_operations erofs_raw_access_aops;
extern const struct address_space_operations z_erofs_aops;
/*
- * Logical to physical block mapping, used by erofs_map_blocks()
+ * Logical to physical block mapping
*
* Different with other file systems, it is used for 2 access modes:
*
@@ -336,7 +336,7 @@ struct erofs_map_blocks {
struct page *mpage;
};
-/* Flags used by erofs_map_blocks() */
+/* Flags used by erofs_map_blocks_flatmode() */
#define EROFS_GET_BLOCKS_RAW 0x0001
/* zmap.c */
@@ -358,8 +358,6 @@ static inline int z_erofs_map_blocks_iter(struct inode *inode,
/* data.c */
struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr);
-int erofs_map_blocks(struct inode *, struct erofs_map_blocks *, int);
-
/* inode.c */
static inline unsigned long erofs_inode_hash(erofs_nid_t nid)
{