瀏覽代碼

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: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Cc: stable@kernel.org
Sebastian Andrzej Siewior 15 年之前
父節點
當前提交
3842e83549
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/ata/libata-sff.c

+ 1 - 1
drivers/ata/libata-sff.c

@@ -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;