diff options
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 199fa436c0dd..b94fe1b3da43 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -298,7 +298,7 @@ static int may_write_to_queue(struct backing_dev_info *bdi) | |||
298 | static void handle_write_error(struct address_space *mapping, | 298 | static void handle_write_error(struct address_space *mapping, |
299 | struct page *page, int error) | 299 | struct page *page, int error) |
300 | { | 300 | { |
301 | lock_page(page); | 301 | lock_page_nosync(page); |
302 | if (page_mapping(page) == mapping) | 302 | if (page_mapping(page) == mapping) |
303 | mapping_set_error(mapping, error); | 303 | mapping_set_error(mapping, error); |
304 | unlock_page(page); | 304 | unlock_page(page); |