aboutsummaryrefslogtreecommitdiff
path: root/fs/erofs/super.c
diff options
context:
space:
mode:
authorJeffle Xu2022-04-25 20:21:42 +0800
committerGao Xiang2022-05-18 00:11:21 +0800
commitc665b394b9e8c534e220da876adbd4db990b4c1b (patch)
tree44e93fc2cebd1827ba3014f825d9e67d71fa2eab /fs/erofs/super.c
parentbd735bdaa62fb64980c07f5443f24aefd0081569 (diff)
erofs: implement fscache-based data readahead
Implement fscache-based data readahead. Also registers an individual bdi for each erofs instance to enable readahead. Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Link: https://lore.kernel.org/r/20220425122143.56815-21-jefflexu@linux.alibaba.com Acked-by: Chao Yu <chao@kernel.org> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/super.c')
-rw-r--r--fs/erofs/super.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/erofs/super.c b/fs/erofs/super.c
index a67c19dc0620..046708440366 100644
--- a/fs/erofs/super.c
+++ b/fs/erofs/super.c
@@ -658,6 +658,10 @@ static int erofs_fc_fill_super(struct super_block *sb, struct fs_context *fc)
sbi->opt.fsid, true);
if (err)
return err;
+
+ err = super_setup_bdi(sb);
+ if (err)
+ return err;
} else {
if (!sb_set_blocksize(sb, EROFS_BLKSIZ)) {
erofs_err(sb, "failed to set erofs blksize");