Skip to content

Commit 44afc06

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
hfsplus: really remove hfsplus_writepage
The earlier commit to remove hfsplus_writepage only removed it from one of the aops. Remove it from the btree_aops as well. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent df56d22 commit 44afc06

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

fs/hfsplus/inode.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ static int hfsplus_read_folio(struct file *file, struct folio *folio)
2828
return block_read_full_folio(folio, hfsplus_get_block);
2929
}
3030

31-
static int hfsplus_writepage(struct page *page, struct writeback_control *wbc)
32-
{
33-
return block_write_full_page(page, hfsplus_get_block, wbc);
34-
}
35-
3631
static void hfsplus_write_failed(struct address_space *mapping, loff_t to)
3732
{
3833
struct inode *inode = mapping->host;
@@ -159,9 +154,10 @@ const struct address_space_operations hfsplus_btree_aops = {
159154
.dirty_folio = block_dirty_folio,
160155
.invalidate_folio = block_invalidate_folio,
161156
.read_folio = hfsplus_read_folio,
162-
.writepage = hfsplus_writepage,
157+
.writepages = hfsplus_writepages,
163158
.write_begin = hfsplus_write_begin,
164159
.write_end = generic_write_end,
160+
.migrate_folio = buffer_migrate_folio,
165161
.bmap = hfsplus_bmap,
166162
.release_folio = hfsplus_release_folio,
167163
};

0 commit comments

Comments
 (0)