File tree Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -1148,20 +1148,6 @@ static void move_to_bypass_jobqueue(struct z_erofs_pcluster *pcl,
1148
1148
qtail [JQ_BYPASS ] = & pcl -> next ;
1149
1149
}
1150
1150
1151
- static bool postsubmit_is_all_bypassed (struct z_erofs_decompressqueue * q [],
1152
- unsigned int nr_bios , bool force_fg )
1153
- {
1154
- /*
1155
- * although background is preferred, no one is pending for submission.
1156
- * don't issue workqueue for decompression but drop it directly instead.
1157
- */
1158
- if (force_fg || nr_bios )
1159
- return false;
1160
-
1161
- kvfree (q [JQ_SUBMIT ]);
1162
- return true;
1163
- }
1164
-
1165
1151
static bool z_erofs_submit_queue (struct super_block * sb ,
1166
1152
z_erofs_next_pcluster_t owned_head ,
1167
1153
struct list_head * pagepool ,
@@ -1262,9 +1248,14 @@ static bool z_erofs_submit_queue(struct super_block *sb,
1262
1248
if (bio )
1263
1249
submit_bio (bio );
1264
1250
1265
- if (postsubmit_is_all_bypassed (q , nr_bios , * force_fg ))
1251
+ /*
1252
+ * although background is preferred, no one is pending for submission.
1253
+ * don't issue workqueue for decompression but drop it directly instead.
1254
+ */
1255
+ if (!* force_fg && !nr_bios ) {
1256
+ kvfree (q [JQ_SUBMIT ]);
1266
1257
return true;
1267
-
1258
+ }
1268
1259
z_erofs_decompress_kickoff (q [JQ_SUBMIT ], * force_fg , nr_bios );
1269
1260
return true;
1270
1261
}
You can’t perform that action at this time.
0 commit comments