]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/block/rd.c
Pull bugzilla-5653 into release branch
[linux-2.6-omap-h63xx.git] / drivers / block / rd.c
index 1c54f46d3f701bff756cfcd385a5eac38ac65a8c..940bfd7951e5c1c582a672447b65dd28ff1367c7 100644 (file)
@@ -186,7 +186,8 @@ static int ramdisk_writepages(struct address_space *mapping,
  */
 static int ramdisk_set_page_dirty(struct page *page)
 {
-       SetPageDirty(page);
+       if (!TestSetPageDirty(page))
+               return 1;
        return 0;
 }