summaryrefslogtreecommitdiffstats
path: root/fs/erofs
diff options
context:
space:
mode:
authorJingbo Xu <jefflexu@linux.alibaba.com>2022-12-01 15:42:56 +0800
committerGao Xiang <hsiangkao@linux.alibaba.com>2022-12-07 10:56:31 +0800
commite6687b89225ee9c817e6dcbadc873f6a4691e5c2 (patch)
treef711900c521a949301eae0581610f3f4630cf180 /fs/erofs
parentbe62c5198861156d77b60babb89e70e21c73eb7b (diff)
downloadlinux-stable-e6687b89225ee9c817e6dcbadc873f6a4691e5c2.tar.gz
linux-stable-e6687b89225ee9c817e6dcbadc873f6a4691e5c2.tar.bz2
linux-stable-e6687b89225ee9c817e6dcbadc873f6a4691e5c2.zip
erofs: enable large folios for fscache mode
Enable large folios for fscache mode. Enable this feature for non-compressed format for now, until the compression part supports large folios later. One thing worth noting is that, the feature is not enabled for the meta data routine since meta inodes don't need large folios for now, nor do they support readahead yet. Also document this new feature. Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com> Reviewed-by: Jia Zhu <zhujia.zj@bytedance.com> Link: https://lore.kernel.org/r/20221201074256.16639-3-jefflexu@linux.alibaba.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs')
-rw-r--r--fs/erofs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/erofs/inode.c b/fs/erofs/inode.c
index e457b8a59ee7..85932086d23f 100644
--- a/fs/erofs/inode.c
+++ b/fs/erofs/inode.c
@@ -295,8 +295,7 @@ static int erofs_fill_inode(struct inode *inode)
goto out_unlock;
}
inode->i_mapping->a_ops = &erofs_raw_access_aops;
- if (!erofs_is_fscache_mode(inode->i_sb))
- mapping_set_large_folios(inode->i_mapping);
+ mapping_set_large_folios(inode->i_mapping);
#ifdef CONFIG_EROFS_FS_ONDEMAND
if (erofs_is_fscache_mode(inode->i_sb))
inode->i_mapping->a_ops = &erofs_fscache_access_aops;