aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_io.c')
-rw-r--r--mm/page_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_io.c b/mm/page_io.c
index 0ed0644c73db..313bfedb75d1 100644
--- a/mm/page_io.c
+++ b/mm/page_io.c
@@ -268,7 +268,7 @@ int __swap_writepage(struct page *page, struct writeback_control *wbc,
268 init_sync_kiocb(&kiocb, swap_file); 268 init_sync_kiocb(&kiocb, swap_file);
269 kiocb.ki_pos = page_file_offset(page); 269 kiocb.ki_pos = page_file_offset(page);
270 kiocb.ki_nbytes = PAGE_SIZE; 270 kiocb.ki_nbytes = PAGE_SIZE;
271 iov_iter_init(&from, &iov, 1, PAGE_SIZE, 0); 271 iov_iter_init(&from, KERNEL_WRITE, &iov, 1, PAGE_SIZE);
272 272
273 set_page_writeback(page); 273 set_page_writeback(page);
274 unlock_page(page); 274 unlock_page(page);