mtd/drivers/mtd/devices blkmtd.c,1.27,1.28

gleixner at infradead.org gleixner at infradead.org
Tue Nov 29 09:31:52 EST 2005


Update of /home/cvs/mtd/drivers/mtd/devices
In directory phoenix.infradead.org:/tmp/cvs-serv9661/drivers/mtd/devices

Modified Files:
	blkmtd.c 
Log Message:
[MTD] devices/blockmtd: Replace low level PageDirty function calls

From: Andrew Morton <akpm at osdl.org>

SetPageDirty() and ClearPageDirty() are low-level thing which filesystems
shouldn't be using.  Thet bypass dirty page accounting.

NB: needs testing!!!

Cc: David Woodhouse <dwmw2 at infradead.org>
Cc: Thomas Gleixner <tglx at linutronix.de>
Signed-off-by: Andrew Morton <akpm at osdl.org>



Index: blkmtd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/blkmtd.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- blkmtd.c	7 Nov 2005 11:14:24 -0000	1.27
+++ blkmtd.c	29 Nov 2005 14:31:49 -0000	1.28
@@ -113,7 +113,7 @@
 			ClearPageUptodate(page);
 			SetPageError(page);
 		}
-		ClearPageDirty(page);
+		clear_page_dirty(page);
 		unlock_page(page);
 		page_cache_release(page);
 	} while (bvec >= bio->bi_io_vec);
@@ -289,7 +289,7 @@
 			BUG();
 		}
 		memcpy(page_address(page)+offset, buf, start_len);
-		SetPageDirty(page);
+		set_page_dirty(page);
 		SetPageUptodate(page);
 		buf += start_len;
 		thislen = start_len;
@@ -336,7 +336,7 @@
 			}
 			pagenr++;
 			pagecnt--;
-			SetPageDirty(page);
+			set_page_dirty(page);
 			SetPageUptodate(page);
 			pagesc--;
 			thislen += PAGE_SIZE;
@@ -357,7 +357,7 @@
 			BUG();
 		}
 		memcpy(page_address(page), buf, end_len);
-		SetPageDirty(page);
+		set_page_dirty(page);
 		SetPageUptodate(page);
 		DEBUG(3, "blkmtd: write: writing out partial end\n");
 		thislen += end_len;





More information about the linux-mtd-cvs mailing list