mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	f2fs: allow to mount if cap is 100
Don't block mounting the partition, if cap is 100%. Reviewed-by: Chao Yu <chao@kernel.org> Reviewed-by: Daeho Jeong <daehojeong@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
		
							parent
							
								
									afbb8ff62b
								
							
						
					
					
						commit
						9ddabae70a
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -904,6 +904,9 @@ int f2fs_disable_cp_again(struct f2fs_sb_info *sbi, block_t unusable)
 | 
			
		|||
{
 | 
			
		||||
	int ovp_hole_segs =
 | 
			
		||||
		(overprovision_segments(sbi) - reserved_segments(sbi));
 | 
			
		||||
 | 
			
		||||
	if (F2FS_OPTION(sbi).unusable_cap_perc == 100)
 | 
			
		||||
		return 0;
 | 
			
		||||
	if (unusable > F2FS_OPTION(sbi).unusable_cap)
 | 
			
		||||
		return -EAGAIN;
 | 
			
		||||
	if (is_sbi_flag_set(sbi, SBI_CP_DISABLED_QUICK) &&
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue