mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	ext4: persist the new uptodate buffers in ext4_journalled_zero_new_buffers
For new uptodate buffers we also need to call write_end_fn() to persist the uptodate content, similarly as folio_zero_new_buffers() does it. Suggested-by: Jan Kara <jack@suse.cz> Signed-off-by: Shida Zhang <zhangshida@kylinos.cn> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20240830053739.3588573-2-zhangshida@kylinos.cn Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
		
							parent
							
								
									59efe53e38
								
							
						
					
					
						commit
						3910b513fc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1371,9 +1371,9 @@ static void ext4_journalled_zero_new_buffers(handle_t *handle, | |||
| 					size = min(to, block_end) - start; | ||||
| 
 | ||||
| 					folio_zero_range(folio, start, size); | ||||
| 					write_end_fn(handle, inode, bh); | ||||
| 				} | ||||
| 				clear_buffer_new(bh); | ||||
| 				write_end_fn(handle, inode, bh); | ||||
| 			} | ||||
| 		} | ||||
| 		block_start = block_end; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Shida Zhang
						Shida Zhang