Lines Matching refs:storage

9  * - added disk storage for bitmap
53 * a '1' bit is read from storage at startup.
186 } storage;
240 bitmap->storage.filemap != NULL;
432 struct bitmap_storage *store = &bitmap->storage;
433 unsigned long num_pages = bitmap->storage.file_pages;
642 struct bitmap_storage *store = &bitmap->storage;
663 if (bitmap->storage.file)
688 if (!bitmap->storage.sb_page) /* no superblock */
690 sb = kmap_local_page(bitmap->storage.sb_page);
712 if (bitmap->storage.file)
713 write_file_page(bitmap, bitmap->storage.sb_page, 1);
715 write_sb_page(bitmap, bitmap->storage.sb_index,
716 bitmap->storage.sb_page, 1);
723 if (!bitmap || !bitmap->storage.sb_page)
725 sb = kmap_local_page(bitmap->storage.sb_page);
763 bitmap->storage.sb_page = alloc_page(GFP_KERNEL | __GFP_ZERO);
764 if (bitmap->storage.sb_page == NULL)
766 bitmap->storage.sb_index = 0;
768 sb = kmap_local_page(bitmap->storage.sb_page);
829 if (!bitmap->storage.file && !bitmap->mddev->bitmap_info.offset) {
841 bitmap->storage.sb_page = sb_page;
859 if (bitmap->storage.file) {
860 loff_t isize = i_size_read(bitmap->storage.file->f_mapping->host);
863 err = read_file_page(bitmap->storage.file, 0,
1100 if (bitmap->storage.file) {
1102 bmname(bitmap), bitmap->storage.file);
1120 set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr);
1126 clear_bit((pnum<<2) + attr, bitmap->storage.filemap_attr);
1132 return test_bit((pnum<<2) + attr, bitmap->storage.filemap_attr);
1139 bitmap->storage.filemap_attr);
1154 struct bitmap_storage *store = &bitmap->storage;
1162 page = filemap_get_page(&bitmap->storage, chunk);
1165 bit = file_page_offset(&bitmap->storage, chunk);
1185 struct bitmap_storage *store = &bitmap->storage;
1193 page = filemap_get_page(&bitmap->storage, chunk);
1196 bit = file_page_offset(&bitmap->storage, chunk);
1217 page = filemap_get_page(&bitmap->storage, chunk);
1220 bit = file_page_offset(&bitmap->storage, chunk);
1244 for (i = 0; i < bitmap->storage.file_pages; i++) {
1326 struct bitmap_storage *store = &bitmap->storage;
1408 struct page *page = filemap_get_page(&bitmap->storage, i);
1409 unsigned long bit = file_page_offset(&bitmap->storage, i);
1449 if (!bitmap || !bitmap->storage.filemap)
1453 if (bitmap->storage.file)
1456 for (i = 0; i < bitmap->storage.file_pages; i++)
1540 for (j = 0; j < bitmap->storage.file_pages; j++)
1552 if (bitmap->storage.filemap) {
1553 sb = kmap_local_page(bitmap->storage.sb_page);
1608 j < bitmap->storage.file_pages
1615 if (bitmap->storage.filemap &&
2025 md_bitmap_file_unmap(&bitmap->storage);
2144 bitmap->storage.file = file;
2316 for (i = 0; i < bitmap->storage.file_pages; i++)
2338 struct bitmap_storage *storage;
2345 if (!bitmap->storage.sb_page)
2347 sb = kmap_local_page(bitmap->storage.sb_page);
2355 storage = &bitmap->storage;
2356 stats->file_pages = storage->file_pages;
2357 stats->file = storage->file;
2369 * Then possibly allocate new storage space.
2388 if (bitmap->storage.file && !init) {
2448 store.file = bitmap->storage.file;
2449 bitmap->storage.file = NULL;
2451 if (store.sb_page && bitmap->storage.sb_page)
2453 page_address(bitmap->storage.sb_page),
2457 md_bitmap_file_unmap(&bitmap->storage);
2458 bitmap->storage = store;
2559 for (i = 0; i < bitmap->storage.file_pages; i++)
2712 if (bitmap && sectors < (bitmap->storage.bytes + 511) >> 9)