Skip to content

Commit 7ff0104

Browse files
Matthew Wilcox (Oracle)Jaegeuk Kim
authored andcommitted
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>
1 parent 3b47398 commit 7ff0104

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

fs/f2fs/node.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,13 +1816,6 @@ int f2fs_move_node_page(struct page *node_page, int gc_type)
18161816
return err;
18171817
}
18181818

1819-
static int f2fs_write_node_page(struct page *page,
1820-
struct writeback_control *wbc)
1821-
{
1822-
return __write_node_page(page, false, NULL, wbc, false,
1823-
FS_NODE_IO, NULL);
1824-
}
1825-
18261819
int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,
18271820
struct writeback_control *wbc, bool atomic,
18281821
unsigned int *seq_id)
@@ -2249,7 +2242,6 @@ static bool f2fs_dirty_node_folio(struct address_space *mapping,
22492242
* Structure of the f2fs node operations
22502243
*/
22512244
const struct address_space_operations f2fs_node_aops = {
2252-
.writepage = f2fs_write_node_page,
22532245
.writepages = f2fs_write_node_pages,
22542246
.dirty_folio = f2fs_dirty_node_folio,
22552247
.invalidate_folio = f2fs_invalidate_folio,

0 commit comments

Comments
 (0)