File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,13 @@ bool f2fs_is_compressed_page(struct page *page)
49
49
return false;
50
50
if (IS_ATOMIC_WRITTEN_PAGE (page ) || IS_DUMMY_WRITTEN_PAGE (page ))
51
51
return false;
52
+ /*
53
+ * page->private may be set with pid.
54
+ * pid_max is enough to check if it is traced.
55
+ */
56
+ if (IS_IO_TRACED_PAGE (page ))
57
+ return false;
58
+
52
59
f2fs_bug_on (F2FS_M_SB (page -> mapping ),
53
60
* ((u32 * )page_private (page )) != F2FS_COMPRESSED_PAGE_MAGIC );
54
61
return true;
Original file line number Diff line number Diff line change @@ -1328,6 +1328,14 @@ enum fsync_mode {
1328
1328
#define IS_DUMMY_WRITTEN_PAGE (page ) \
1329
1329
(page_private(page) == (unsigned long)DUMMY_WRITTEN_PAGE)
1330
1330
1331
+ #ifdef CONFIG_F2FS_IO_TRACE
1332
+ #define IS_IO_TRACED_PAGE (page ) \
1333
+ (page_private(page) > 0 && \
1334
+ page_private(page) < (unsigned long)PID_MAX_LIMIT)
1335
+ #else
1336
+ #define IS_IO_TRACED_PAGE (page ) (0)
1337
+ #endif
1338
+
1331
1339
#ifdef CONFIG_FS_ENCRYPTION
1332
1340
#define DUMMY_ENCRYPTION_ENABLED (sbi ) \
1333
1341
(unlikely(F2FS_OPTION(sbi).dummy_enc_ctx.ctx != NULL))
You can’t perform that action at this time.
0 commit comments