@@ -96,16 +96,9 @@ static void z_erofs_free_pcluster(struct z_erofs_pcluster *pcl)
96
96
DBG_BUGON (1 );
97
97
}
98
98
99
- /*
100
- * a compressed_pages[] placeholder in order to avoid
101
- * being filled with file pages for in-place decompression.
102
- */
103
- #define PAGE_UNALLOCATED ((void *)0x5F0E4B1D)
104
-
105
99
/* how to allocate cached pages for a pcluster */
106
100
enum z_erofs_cache_alloctype {
107
101
DONTALLOC , /* don't allocate any cached pages */
108
- DELAYEDALLOC , /* delayed allocation (at the time of submitting io) */
109
102
/*
110
103
* try to use cached I/O if page allocation succeeds or fallback
111
104
* to in-place I/O instead to avoid any direct reclaim.
@@ -267,10 +260,6 @@ static void preload_compressed_pages(struct z_erofs_collector *clt,
267
260
/* I/O is needed, no possible to decompress directly */
268
261
standalone = false;
269
262
switch (type ) {
270
- case DELAYEDALLOC :
271
- t = tagptr_init (compressed_page_t ,
272
- PAGE_UNALLOCATED );
273
- break ;
274
263
case TRYALLOC :
275
264
newpage = erofs_allocpage (pagepool , gfp );
276
265
if (!newpage )
@@ -1092,15 +1081,6 @@ static struct page *pickup_page_for_submission(struct z_erofs_pcluster *pcl,
1092
1081
if (!page )
1093
1082
goto out_allocpage ;
1094
1083
1095
- /*
1096
- * the cached page has not been allocated and
1097
- * an placeholder is out there, prepare it now.
1098
- */
1099
- if (page == PAGE_UNALLOCATED ) {
1100
- tocache = true;
1101
- goto out_allocpage ;
1102
- }
1103
-
1104
1084
/* process the target tagged pointer */
1105
1085
t = tagptr_init (compressed_page_t , page );
1106
1086
justfound = tagptr_unfold_tags (t );
0 commit comments