]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/vmscan.c
pm2fb: fix of jumps in pm2fb_probe
[linux-2.6-omap-h63xx.git] / mm / vmscan.c
index 56651a10c36645a7f58c87ac9b97599b72255b61..1c8e75a1cfcd30dba6a59c84de754f9dd9be8ec6 100644 (file)
@@ -284,12 +284,8 @@ static void handle_write_error(struct address_space *mapping,
                                struct page *page, int error)
 {
        lock_page(page);
-       if (page_mapping(page) == mapping) {
-               if (error == -ENOSPC)
-                       set_bit(AS_ENOSPC, &mapping->flags);
-               else
-                       set_bit(AS_EIO, &mapping->flags);
-       }
+       if (page_mapping(page) == mapping)
+               mapping_set_error(mapping, error);
        unlock_page(page);
 }