OSDN Git Service

Merge tag 'erofs-for-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang...
[tomoyo/tomoyo-test1.git] / fs / erofs / zdata.c
index 187f93b..be50a4d 100644 (file)
@@ -615,7 +615,7 @@ restart_now:
                goto err_out;
 
        /* preload all compressed pages (maybe downgrade role if necessary) */
-       if (should_alloc_managed_pages(fe, sbi->cache_strategy, map->m_la))
+       if (should_alloc_managed_pages(fe, sbi->ctx.cache_strategy, map->m_la))
                cache_strategy = DELAYEDALLOC;
        else
                cache_strategy = DONTALLOC;
@@ -1302,7 +1302,7 @@ static int z_erofs_readpage(struct file *file, struct page *page)
 static bool should_decompress_synchronously(struct erofs_sb_info *sbi,
                                            unsigned int nr)
 {
-       return nr <= sbi->max_sync_decompress_pages;
+       return nr <= sbi->ctx.max_sync_decompress_pages;
 }
 
 static void z_erofs_readahead(struct readahead_control *rac)