File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -528,8 +528,6 @@ struct z_erofs_decompress_frontend {
528
528
z_erofs_next_pcluster_t owned_head ;
529
529
enum z_erofs_pclustermode mode ;
530
530
531
- /* used for applying cache strategy on the fly */
532
- bool backmost ;
533
531
erofs_off_t headoffset ;
534
532
535
533
/* a pointer used to pick up inplace I/O pages */
@@ -538,7 +536,7 @@ struct z_erofs_decompress_frontend {
538
536
539
537
#define DECOMPRESS_FRONTEND_INIT (__i ) { \
540
538
.inode = __i, .owned_head = Z_EROFS_PCLUSTER_TAIL, \
541
- .mode = Z_EROFS_PCLUSTER_FOLLOWED, .backmost = true }
539
+ .mode = Z_EROFS_PCLUSTER_FOLLOWED }
542
540
543
541
static bool z_erofs_should_alloc_cache (struct z_erofs_decompress_frontend * fe )
544
542
{
@@ -547,7 +545,7 @@ static bool z_erofs_should_alloc_cache(struct z_erofs_decompress_frontend *fe)
547
545
if (cachestrategy <= EROFS_ZIP_CACHE_DISABLED )
548
546
return false;
549
547
550
- if (fe -> backmost )
548
+ if (!( fe -> map . m_flags & EROFS_MAP_FULL_MAPPED ) )
551
549
return true;
552
550
553
551
if (cachestrategy >= EROFS_ZIP_CACHE_READAROUND &&
@@ -940,7 +938,6 @@ static void z_erofs_pcluster_end(struct z_erofs_decompress_frontend *fe)
940
938
erofs_workgroup_put (& pcl -> obj );
941
939
942
940
fe -> pcl = NULL ;
943
- fe -> backmost = false;
944
941
}
945
942
946
943
static int z_erofs_read_fragment (struct super_block * sb , struct page * page ,
You can’t perform that action at this time.
0 commit comments