This repository was archived by the owner on Jun 20, 2022. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
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 @@ -55,6 +55,13 @@ bool f2fs_is_compressed_page(struct page *page)
5555		return  false;
5656	if  (IS_ATOMIC_WRITTEN_PAGE (page ) ||  IS_DUMMY_WRITTEN_PAGE (page ))
5757		return  false;
58+ 	/* 
59+ 	 * page->private may be set with pid. 
60+ 	 * pid_max is enough to check if it is traced. 
61+ 	 */ 
62+ 	if  (IS_IO_TRACED_PAGE (page ))
63+ 		return  false;
64+ 
5865	f2fs_bug_on (F2FS_M_SB (page -> mapping ),
5966		* ((u32  * )page_private (page )) !=  F2FS_COMPRESSED_PAGE_MAGIC );
6067	return  true;
Original file line number Diff line number Diff line change @@ -1262,6 +1262,14 @@ enum fsync_mode {
12621262	FSYNC_MODE_NOBARRIER ,	/* fsync behaves nobarrier based on posix */ 
12631263};
12641264
1265+ #ifdef  CONFIG_F2FS_IO_TRACE 
1266+ #define  IS_IO_TRACED_PAGE (page )			\
1267+ 		(page_private(page) > 0 &&		\
1268+ 		 page_private(page) < (unsigned long)PID_MAX_LIMIT)
1269+ #else 
1270+ #define  IS_IO_TRACED_PAGE (page ) (0)
1271+ #endif 
1272+ 
12651273#ifdef  CONFIG_F2FS_FS_ENCRYPTION 
12661274#define  DUMMY_ENCRYPTION_ENABLED (sbi ) \
12671275			(unlikely(F2FS_OPTION(sbi).test_dummy_encryption))
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments