Skip to content

Commit df56d22

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
hfs: really remove hfs_writepage
The earlier commit to remove hfs_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: Jens Axboe <[email protected]> Cc: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 3a44d30 commit df56d22

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

fs/hfs/inode.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ static const struct inode_operations hfs_file_inode_operations;
2929

3030
#define HFS_VALID_MODE_BITS (S_IFREG | S_IFDIR | S_IRWXUGO)
3131

32-
static int hfs_writepage(struct page *page, struct writeback_control *wbc)
33-
{
34-
return block_write_full_page(page, hfs_get_block, wbc);
35-
}
36-
3732
static int hfs_read_folio(struct file *file, struct folio *folio)
3833
{
3934
return block_read_full_folio(folio, hfs_get_block);
@@ -162,9 +157,10 @@ const struct address_space_operations hfs_btree_aops = {
162157
.dirty_folio = block_dirty_folio,
163158
.invalidate_folio = block_invalidate_folio,
164159
.read_folio = hfs_read_folio,
165-
.writepage = hfs_writepage,
160+
.writepages = hfs_writepages,
166161
.write_begin = hfs_write_begin,
167162
.write_end = generic_write_end,
163+
.migrate_folio = buffer_migrate_folio,
168164
.bmap = hfs_bmap,
169165
.release_folio = hfs_release_folio,
170166
};

0 commit comments

Comments
 (0)