Lines Matching defs:storage
9 * - added disk storage for bitmap
53 * a '1' bit is read from storage at startup.
186 } storage;
241 bitmap->storage.filemap != NULL;
433 struct bitmap_storage *store = &bitmap->storage;
434 unsigned long num_pages = bitmap->storage.file_pages;
644 struct bitmap_storage *store = &bitmap->storage;
665 if (bitmap->storage.file)
690 if (!bitmap->storage.sb_page) /* no superblock */
692 sb = kmap_local_page(bitmap->storage.sb_page);
714 if (bitmap->storage.file)
715 write_file_page(bitmap, bitmap->storage.sb_page, 1);
717 write_sb_page(bitmap, bitmap->storage.sb_index,
718 bitmap->storage.sb_page, 1);
725 if (!bitmap || !bitmap->storage.sb_page)
727 sb = kmap_local_page(bitmap->storage.sb_page);
765 bitmap->storage.sb_page = alloc_page(GFP_KERNEL | __GFP_ZERO);
766 if (bitmap->storage.sb_page == NULL)
768 bitmap->storage.sb_index = 0;
770 sb = kmap_local_page(bitmap->storage.sb_page);
831 if (!bitmap->storage.file && !bitmap->mddev->bitmap_info.offset) {
843 bitmap->storage.sb_page = sb_page;
861 if (bitmap->storage.file) {
862 loff_t isize = i_size_read(bitmap->storage.file->f_mapping->host);
865 err = read_file_page(bitmap->storage.file, 0,
1102 if (bitmap->storage.file) {
1104 bmname(bitmap), bitmap->storage.file);
1122 set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr);
1128 clear_bit((pnum<<2) + attr, bitmap->storage.filemap_attr);
1134 return test_bit((pnum<<2) + attr, bitmap->storage.filemap_attr);
1141 bitmap->storage.filemap_attr);
1156 struct bitmap_storage *store = &bitmap->storage;
1164 page = filemap_get_page(&bitmap->storage, chunk);
1167 bit = file_page_offset(&bitmap->storage, chunk);
1187 struct bitmap_storage *store = &bitmap->storage;
1195 page = filemap_get_page(&bitmap->storage, chunk);
1198 bit = file_page_offset(&bitmap->storage, chunk);
1219 page = filemap_get_page(&bitmap->storage, chunk);
1222 bit = file_page_offset(&bitmap->storage, chunk);
1246 for (i = 0; i < bitmap->storage.file_pages; i++) {
1328 struct bitmap_storage *store = &bitmap->storage;
1410 struct page *page = filemap_get_page(&bitmap->storage, i);
1411 unsigned long bit = file_page_offset(&bitmap->storage, i);
1451 if (!bitmap || !bitmap->storage.filemap)
1455 if (bitmap->storage.file)
1458 for (i = 0; i < bitmap->storage.file_pages; i++)
1542 for (j = 0; j < bitmap->storage.file_pages; j++)
1554 if (bitmap->storage.filemap) {
1555 sb = kmap_local_page(bitmap->storage.sb_page);
1610 j < bitmap->storage.file_pages
1617 if (bitmap->storage.filemap &&
2027 md_bitmap_file_unmap(&bitmap->storage);
2146 bitmap->storage.file = file;
2318 for (i = 0; i < bitmap->storage.file_pages; i++)
2340 struct bitmap_storage *storage;
2347 if (!bitmap->storage.sb_page)
2349 sb = kmap_local_page(bitmap->storage.sb_page);
2357 storage = &bitmap->storage;
2358 stats->file_pages = storage->file_pages;
2359 stats->file = storage->file;
2371 * Then possibly allocate new storage space.
2390 if (bitmap->storage.file && !init) {
2450 store.file = bitmap->storage.file;
2451 bitmap->storage.file = NULL;
2453 if (store.sb_page && bitmap->storage.sb_page)
2455 page_address(bitmap->storage.sb_page),
2459 md_bitmap_file_unmap(&bitmap->storage);
2460 bitmap->storage = store;
2561 for (i = 0; i < bitmap->storage.file_pages; i++)
2767 if (bitmap && sectors < (bitmap->storage.bytes + 511) >> 9)