]> Pileus Git - ~andy/linux/blobdiff - mm/vmscan.c
Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[~andy/linux] / mm / vmscan.c
index 060e4c1914033fe61b2f06a445d6935b559eba2f..f73b8657c2d03053f9b0340a55132ee2d3ebd2f0 100644 (file)
@@ -358,7 +358,7 @@ static int may_write_to_queue(struct backing_dev_info *bdi,
 static void handle_write_error(struct address_space *mapping,
                                struct page *page, int error)
 {
-       lock_page_nosync(page);
+       lock_page(page);
        if (page_mapping(page) == mapping)
                mapping_set_error(mapping, error);
        unlock_page(page);