Skip to content

Commit fe75adf

Browse files
Matthew Wilcox (Oracle)brauner
authored andcommitted
ttm: Call shmem_writeout() from ttm_backup_backup_page()
The ->writepage operation is being removed. Since this function exclusively deals with shmem folios, we can call shmem_writeout() to write it. Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 776a853 commit fe75adf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/ttm/ttm_backup.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ ttm_backup_backup_page(struct ttm_backup *backup, struct page *page,
136136
.for_reclaim = 1,
137137
};
138138
folio_set_reclaim(to_folio);
139-
ret = mapping->a_ops->writepage(folio_file_page(to_folio, idx), &wbc);
139+
ret = shmem_writeout(to_folio, &wbc);
140140
if (!folio_test_writeback(to_folio))
141141
folio_clear_reclaim(to_folio);
142142
/*
143-
* If writepage succeeds, it unlocks the folio.
144-
* writepage() errors are otherwise dropped, since writepage()
145-
* is only best effort here.
143+
* If writeout succeeds, it unlocks the folio. errors
144+
* are otherwise dropped, since writeout is only best
145+
* effort here.
146146
*/
147147
if (ret)
148148
folio_unlock(to_folio);

0 commit comments

Comments
 (0)