mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	f2fs: Remove f2fs_write_node_page()
Mappings which implement writepages should not implement writepage as it can only harm writeback patterns. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
		
							parent
							
								
									3b47398d98
								
							
						
					
					
						commit
						7ff0104a80
					
				
					 1 changed files with 0 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -1816,13 +1816,6 @@ int f2fs_move_node_page(struct page *node_page, int gc_type)
 | 
			
		|||
	return err;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int f2fs_write_node_page(struct page *page,
 | 
			
		||||
				struct writeback_control *wbc)
 | 
			
		||||
{
 | 
			
		||||
	return __write_node_page(page, false, NULL, wbc, false,
 | 
			
		||||
						FS_NODE_IO, NULL);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,
 | 
			
		||||
			struct writeback_control *wbc, bool atomic,
 | 
			
		||||
			unsigned int *seq_id)
 | 
			
		||||
| 
						 | 
				
			
			@ -2249,7 +2242,6 @@ static bool f2fs_dirty_node_folio(struct address_space *mapping,
 | 
			
		|||
 * Structure of the f2fs node operations
 | 
			
		||||
 */
 | 
			
		||||
const struct address_space_operations f2fs_node_aops = {
 | 
			
		||||
	.writepage	= f2fs_write_node_page,
 | 
			
		||||
	.writepages	= f2fs_write_node_pages,
 | 
			
		||||
	.dirty_folio	= f2fs_dirty_node_folio,
 | 
			
		||||
	.invalidate_folio = f2fs_invalidate_folio,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue