Commit 29b993c 1 parent 9a99c17 commit 29b993c Copy full SHA for 29b993c
File tree 2 files changed +15
-0
lines changed
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 @@ -1313,6 +1313,14 @@ enum fsync_mode {
1313
1313
#define IS_DUMMY_WRITTEN_PAGE (page ) \
1314
1314
(page_private(page) == (unsigned long)DUMMY_WRITTEN_PAGE)
1315
1315
1316
+ #ifdef CONFIG_F2FS_IO_TRACE
1317
+ #define IS_IO_TRACED_PAGE (page ) \
1318
+ (page_private(page) > 0 && \
1319
+ page_private(page) < (unsigned long)PID_MAX_LIMIT)
1320
+ #else
1321
+ #define IS_IO_TRACED_PAGE (page ) (0)
1322
+ #endif
1323
+
1316
1324
#ifdef CONFIG_FS_ENCRYPTION
1317
1325
#define DUMMY_ENCRYPTION_ENABLED (sbi ) \
1318
1326
(unlikely(F2FS_OPTION(sbi).dummy_enc_ctx.ctx != NULL))
You can’t perform that action at this time.
0 commit comments