diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-06-21 20:17:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 22:07:47 -0400 |
commit | a654b9d8f851f4ca02649d5825cbe6c608adb10c (patch) | |
tree | 747301647f619a9f1dd48f4d6be96b5e35d2484c /include/linux/raid/bitmap.h | |
parent | 3d310eb7b3df1252e8595d059d982b0a9825a137 (diff) |
[PATCH] md: allow md intent bitmap to be stored near the superblock.
This provides an alternate to storing the bitmap in a separate file. The
bitmap can be stored at a given offset from the superblock. Obviously the
creator of the array must make sure this doesn't intersect with data....
After is good for version-0.90 superblocks.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid/bitmap.h')
-rw-r--r-- | include/linux/raid/bitmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/raid/bitmap.h b/include/linux/raid/bitmap.h index cfe60cfc8f3d..e24b74b11150 100644 --- a/include/linux/raid/bitmap.h +++ b/include/linux/raid/bitmap.h | |||
@@ -217,6 +217,7 @@ struct bitmap { | |||
217 | /* bitmap spinlock */ | 217 | /* bitmap spinlock */ |
218 | spinlock_t lock; | 218 | spinlock_t lock; |
219 | 219 | ||
220 | long offset; /* offset from superblock if file is NULL */ | ||
220 | struct file *file; /* backing disk file */ | 221 | struct file *file; /* backing disk file */ |
221 | struct page *sb_page; /* cached copy of the bitmap file superblock */ | 222 | struct page *sb_page; /* cached copy of the bitmap file superblock */ |
222 | struct page **filemap; /* list of cache pages for the file */ | 223 | struct page **filemap; /* list of cache pages for the file */ |
@@ -255,6 +256,7 @@ void bitmap_print_sb(struct bitmap *bitmap); | |||
255 | int bitmap_update_sb(struct bitmap *bitmap); | 256 | int bitmap_update_sb(struct bitmap *bitmap); |
256 | 257 | ||
257 | int bitmap_setallbits(struct bitmap *bitmap); | 258 | int bitmap_setallbits(struct bitmap *bitmap); |
259 | void bitmap_write_all(struct bitmap *bitmap); | ||
258 | 260 | ||
259 | /* these are exported */ | 261 | /* these are exported */ |
260 | int bitmap_startwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors); | 262 | int bitmap_startwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors); |