summaryrefslogtreecommitdiff
path: root/mm/page_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_io.c')
-rw-r--r--mm/page_io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/page_io.c b/mm/page_io.c
index 955db8b0d497..f864ef3d3f99 100644
--- a/mm/page_io.c
+++ b/mm/page_io.c
@@ -277,6 +277,9 @@ int __swap_writepage(struct page *page, struct writeback_control *wbc,
};
from.bvec = &bv; /* older gcc versions are broken */
+ /* Do this by hand because old gcc messes up the initializer */
+ from.bvec = &bv;
+
init_sync_kiocb(&kiocb, swap_file);
kiocb.ki_pos = page_file_offset(page);
kiocb.ki_nbytes = PAGE_SIZE;