diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2022-01-02 05:00:17 +0100 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2022-01-04 16:47:36 +0100 |
commit | 09c543798c3cde19aae575a0f76d5fc7c130ff18 (patch) | |
tree | 644f73c442b0dfc42a6609c693e1ff6162669426 /fs/erofs/data.c | |
parent | erofs: use meta buffers for xattr operations (diff) | |
download | linux-09c543798c3cde19aae575a0f76d5fc7c130ff18.tar.xz linux-09c543798c3cde19aae575a0f76d5fc7c130ff18.zip |
erofs: use meta buffers for zmap operations
Get rid of old erofs_get_meta_page() within zmap operations by
using on-stack meta buffers in order to prepare subpage and folio
features.
Finally, erofs_get_meta_page() is useless. Get rid of it!
Link: https://lore.kernel.org/r/20220102040017.51352-6-hsiangkao@linux.alibaba.com
Reviewed-by: Yue Hu <huyue2@yulong.com>
Reviewed-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/data.c')
-rw-r--r-- | fs/erofs/data.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/erofs/data.c b/fs/erofs/data.c index bd37f53f60cb..e18476c85fa2 100644 --- a/fs/erofs/data.c +++ b/fs/erofs/data.c @@ -9,19 +9,6 @@ #include <linux/dax.h> #include <trace/events/erofs.h> -struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr) -{ - struct address_space *const mapping = sb->s_bdev->bd_inode->i_mapping; - struct page *page; - - page = read_cache_page_gfp(mapping, blkaddr, - mapping_gfp_constraint(mapping, ~__GFP_FS)); - /* should already be PageUptodate */ - if (!IS_ERR(page)) - lock_page(page); - return page; -} - void erofs_unmap_metabuf(struct erofs_buf *buf) { if (buf->kmap_type == EROFS_KMAP) |