Commit 3842e835 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Jeff Garzik

libata: don't flush dcache on slab pages

page_mapping() check this via VM_BUG_ON(PageSlab(page)) so we bug here
with the according debuging turned on.

Future TODO: replace this with a flush_dcache_page_for_pio() API
Signed-off-by: default avatarSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
Cc: stable@kernel.org
parent 276a47a9
...@@ -919,7 +919,7 @@ static void ata_pio_sector(struct ata_queued_cmd *qc) ...@@ -919,7 +919,7 @@ static void ata_pio_sector(struct ata_queued_cmd *qc)
do_write); do_write);
} }
if (!do_write) if (!do_write && !PageSlab(page))
flush_dcache_page(page); flush_dcache_page(page);
qc->curbytes += qc->sect_size; qc->curbytes += qc->sect_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment