aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/sg.c2
-rw-r--r--drivers/scsi/st.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index 72ec59456e69..6de7ff9faf2d 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -1878,8 +1878,6 @@ st_unmap_user_pages(struct scatterlist *sgl, const unsigned int nr_pages,
1878 for (i=0; i < nr_pages; i++) { 1878 for (i=0; i < nr_pages; i++) {
1879 struct page *page = sgl[i].page; 1879 struct page *page = sgl[i].page;
1880 1880
1881 /* XXX: just for debug. Remove when PageReserved is removed */
1882 BUG_ON(PageReserved(page));
1883 if (dirtied) 1881 if (dirtied)
1884 SetPageDirty(page); 1882 SetPageDirty(page);
1885 /* unlock_page(page); */ 1883 /* unlock_page(page); */
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index b1056d290ae2..7ac6ea141fff 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -4525,8 +4525,6 @@ static int sgl_unmap_user_pages(struct scatterlist *sgl, const unsigned int nr_p
4525 for (i=0; i < nr_pages; i++) { 4525 for (i=0; i < nr_pages; i++) {
4526 struct page *page = sgl[i].page; 4526 struct page *page = sgl[i].page;
4527 4527
4528 /* XXX: just for debug. Remove when PageReserved is removed */
4529 BUG_ON(PageReserved(page));
4530 if (dirtied) 4528 if (dirtied)
4531 SetPageDirty(page); 4529 SetPageDirty(page);
4532 /* FIXME: cache flush missing for rw==READ 4530 /* FIXME: cache flush missing for rw==READ