diff options
author | 2022-03-11 02:27:43 +0800 | |
---|---|---|
committer | 2022-03-17 00:09:02 +0800 | |
commit | 9f2731d6338a072b60ab1d9340847bde3306614b (patch) | |
tree | 5796e4b83d801334da919cef0b387bae64a3d0c6 /fs/erofs/zdata.c | |
parent | erofs: clean up z_erofs_extent_lookback (diff) | |
download | linux-9f2731d6338a072b60ab1d9340847bde3306614b.tar.gz linux-9f2731d6338a072b60ab1d9340847bde3306614b.tar.bz2 linux-9f2731d6338a072b60ab1d9340847bde3306614b.zip |
erofs: refine managed inode stuffs
Set up the correct gfp mask and use it instead of hard coding.
Also add comments about .invalidatepage() to show more details.
Link: https://lore.kernel.org/r/20220310182743.102365-2-hsiangkao@linux.alibaba.com
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/zdata.c')
-rw-r--r-- | fs/erofs/zdata.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index 59aecf42e45c..f5e17c03b2fb 100644 --- a/fs/erofs/zdata.c +++ b/fs/erofs/zdata.c @@ -1091,10 +1091,10 @@ static void z_erofs_decompress_kickoff(struct z_erofs_decompressqueue *io, static struct page *pickup_page_for_submission(struct z_erofs_pcluster *pcl, unsigned int nr, struct page **pagepool, - struct address_space *mc, - gfp_t gfp) + struct address_space *mc) { const pgoff_t index = pcl->obj.index; + gfp_t gfp = mapping_gfp_mask(mc); bool tocache = false; struct address_space *mapping; @@ -1350,8 +1350,7 @@ static void z_erofs_submit_queue(struct super_block *sb, struct page *page; page = pickup_page_for_submission(pcl, i++, pagepool, - MNGD_MAPPING(sbi), - GFP_NOFS); + MNGD_MAPPING(sbi)); if (!page) continue; |