mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	f2fs: fix to tag gcing flag on page during file defragment
In order to garantee migrated data be persisted during checkpoint, otherwise out-of-order persistency between data and node may cause data corruption after SPOR. Signed-off-by: Chao Yu <chao.yu@oppo.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
		
							parent
							
								
									054cb2891b
								
							
						
					
					
						commit
						2d1fe8a86b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -2602,6 +2602,7 @@ static int f2fs_defragment_range(struct f2fs_sb_info *sbi,
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			set_page_dirty(page);
 | 
								set_page_dirty(page);
 | 
				
			||||||
 | 
								set_page_private_gcing(page);
 | 
				
			||||||
			f2fs_put_page(page, 1);
 | 
								f2fs_put_page(page, 1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			idx++;
 | 
								idx++;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue