Skip to content

Commit

Permalink
libata: don't flush dcache on slab pages
Browse files Browse the repository at this point in the history
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: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Cc: stable@kernel.org
  • Loading branch information
Sebastian Andrzej Siewior authored and Jeff Garzik committed May 14, 2010
1 parent 276a47a commit 3842e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libata-sff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3842e83

Please sign in to comment.