Thread (8 messages) 8 messages, 3 authors, 2006-07-27

Re: [PATCH] md: new bitmap sysfs interface

From: dave rientjes <rientjes@google.com>
Date: 2006-07-25 17:41:32

On Tue, 25 Jul 2006, Paul Clements wrote:
quoted hunk ↗ jump to hunk
@@ -1322,6 +1324,18 @@ static void bitmap_set_memory_bits(struc

 }

+/* dirty the memory and file bits for bitmap chunks "s" to "e" */
+void bitmap_dirty_bits(struct bitmap *bitmap, unsigned long s, unsigned long 
e)
+{
+       unsigned long chunk;
+
+       for (chunk = s; chunk <= e; chunk++) {
+               sector_t sec = chunk << CHUNK_BLOCK_SHIFT(bitmap);
+               bitmap_set_memory_bits(bitmap, sec, 1);
+               bitmap_file_set_bit(bitmap, sec);
+       }
+}
+
Why not

{
 	for (; s <= e; s++) {
 		sector_t sec = s << CHUNK_BLOCK_SHIFT(bitmap);
 		...
 	}
}

 		David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help