libata: don't flush dcache on slab pages
[safe/jmp/linux-2.6] / drivers / ata / libata-sff.c
index b7f7f85..c0a9054 100644 (file)
@@ -919,7 +919,7 @@ static void ata_pio_sector(struct ata_queued_cmd *qc)
                                       do_write);
        }
 
-       if (!do_write)
+       if (!do_write && !PageSlab(page))
                flush_dcache_page(page);
 
        qc->curbytes += qc->sect_size;