aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bitmap.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-05-21 23:55:10 -0400
committerNeilBrown <neilb@suse.de>2012-05-21 23:55:10 -0400
commit1ec885cdd01a9ad867dbb9fd32a1bfcc0875c486 (patch)
tree232eaa1e1b7820ca8e97782666f7742f78bef175 /drivers/md/bitmap.h
parentd189122d4bca2647441fdc170dc6d4cc5c8bb2fa (diff)
md/bitmap: move some fields of 'struct bitmap' into a 'storage' substruct.
This new 'struct bitmap_storage' reflects the external storage of the bitmap. Having this clearly defined will make it easier to change the storage used while the array is active. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/bitmap.h')
-rw-r--r--drivers/md/bitmap.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/md/bitmap.h b/drivers/md/bitmap.h
index 79e17983473a..162ab095b866 100644
--- a/drivers/md/bitmap.h
+++ b/drivers/md/bitmap.h
@@ -188,12 +188,17 @@ struct bitmap {
188 /* bitmap spinlock */ 188 /* bitmap spinlock */
189 spinlock_t lock; 189 spinlock_t lock;
190 190
191 struct file *file; /* backing disk file */ 191 struct bitmap_storage {
192 struct page *sb_page; /* cached copy of the bitmap file superblock */ 192 struct file *file; /* backing disk file */
193 struct page **filemap; /* list of cache pages for the file */ 193 struct page *sb_page; /* cached copy of the bitmap
194 unsigned long *filemap_attr; /* attributes associated w/ filemap pages */ 194 * file superblock */
195 unsigned long file_pages; /* number of pages in the file */ 195 struct page **filemap; /* list of cache pages for
196 int last_page_size; /* bytes in the last page */ 196 * the file */
197 unsigned long *filemap_attr; /* attributes associated
198 * w/ filemap pages */
199 unsigned long file_pages; /* number of pages in the file*/
200 int last_page_size; /* bytes in the last page */
201 } storage;
197 202
198 unsigned long flags; 203 unsigned long flags;
199 204