Lines Matching refs:storage

186 	} storage;  member
240 bitmap->storage.filemap != NULL; in bitmap_enabled()
432 struct bitmap_storage *store = &bitmap->storage; in __write_sb_page()
433 unsigned long num_pages = bitmap->storage.file_pages; in __write_sb_page()
642 struct bitmap_storage *store = &bitmap->storage; in filemap_write_page()
663 if (bitmap->storage.file) in md_bitmap_wait_writes()
688 if (!bitmap->storage.sb_page) /* no superblock */ in bitmap_update_sb()
690 sb = kmap_local_page(bitmap->storage.sb_page); in bitmap_update_sb()
712 if (bitmap->storage.file) in bitmap_update_sb()
713 write_file_page(bitmap, bitmap->storage.sb_page, 1); in bitmap_update_sb()
715 write_sb_page(bitmap, bitmap->storage.sb_index, in bitmap_update_sb()
716 bitmap->storage.sb_page, 1); in bitmap_update_sb()
723 if (!bitmap || !bitmap->storage.sb_page) in bitmap_print_sb()
725 sb = kmap_local_page(bitmap->storage.sb_page); in bitmap_print_sb()
763 bitmap->storage.sb_page = alloc_page(GFP_KERNEL | __GFP_ZERO); in md_bitmap_new_disk_sb()
764 if (bitmap->storage.sb_page == NULL) in md_bitmap_new_disk_sb()
766 bitmap->storage.sb_index = 0; in md_bitmap_new_disk_sb()
768 sb = kmap_local_page(bitmap->storage.sb_page); in md_bitmap_new_disk_sb()
829 if (!bitmap->storage.file && !bitmap->mddev->bitmap_info.offset) { in md_bitmap_read_sb()
841 bitmap->storage.sb_page = sb_page; in md_bitmap_read_sb()
859 if (bitmap->storage.file) { in md_bitmap_read_sb()
860 loff_t isize = i_size_read(bitmap->storage.file->f_mapping->host); in md_bitmap_read_sb()
863 err = read_file_page(bitmap->storage.file, 0, in md_bitmap_read_sb()
1100 if (bitmap->storage.file) { in md_bitmap_file_kick()
1102 bmname(bitmap), bitmap->storage.file); in md_bitmap_file_kick()
1120 set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in set_page_attr()
1126 clear_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in clear_page_attr()
1132 return test_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in test_page_attr()
1139 bitmap->storage.filemap_attr); in test_and_clear_page_attr()
1154 struct bitmap_storage *store = &bitmap->storage; in md_bitmap_file_set_bit()
1162 page = filemap_get_page(&bitmap->storage, chunk); in md_bitmap_file_set_bit()
1165 bit = file_page_offset(&bitmap->storage, chunk); in md_bitmap_file_set_bit()
1185 struct bitmap_storage *store = &bitmap->storage; in md_bitmap_file_clear_bit()
1193 page = filemap_get_page(&bitmap->storage, chunk); in md_bitmap_file_clear_bit()
1196 bit = file_page_offset(&bitmap->storage, chunk); in md_bitmap_file_clear_bit()
1217 page = filemap_get_page(&bitmap->storage, chunk); in md_bitmap_file_test_bit()
1220 bit = file_page_offset(&bitmap->storage, chunk); in md_bitmap_file_test_bit()
1244 for (i = 0; i < bitmap->storage.file_pages; i++) { in __bitmap_unplug()
1326 struct bitmap_storage *store = &bitmap->storage; in md_bitmap_init_from_disk()
1408 struct page *page = filemap_get_page(&bitmap->storage, i); in md_bitmap_init_from_disk()
1409 unsigned long bit = file_page_offset(&bitmap->storage, i); in md_bitmap_init_from_disk()
1449 if (!bitmap || !bitmap->storage.filemap) in bitmap_write_all()
1453 if (bitmap->storage.file) in bitmap_write_all()
1456 for (i = 0; i < bitmap->storage.file_pages; i++) in bitmap_write_all()
1540 for (j = 0; j < bitmap->storage.file_pages; j++) in bitmap_daemon_work()
1552 if (bitmap->storage.filemap) { in bitmap_daemon_work()
1553 sb = kmap_local_page(bitmap->storage.sb_page); in bitmap_daemon_work()
1608 j < bitmap->storage.file_pages in bitmap_daemon_work()
1615 if (bitmap->storage.filemap && in bitmap_daemon_work()
2025 md_bitmap_file_unmap(&bitmap->storage); in md_bitmap_free()
2144 bitmap->storage.file = file; in __bitmap_create()
2316 for (i = 0; i < bitmap->storage.file_pages; i++) in bitmap_copy_from_slot()
2338 struct bitmap_storage *storage; in bitmap_get_stats() local
2345 if (!bitmap->storage.sb_page) in bitmap_get_stats()
2347 sb = kmap_local_page(bitmap->storage.sb_page); in bitmap_get_stats()
2355 storage = &bitmap->storage; in bitmap_get_stats()
2356 stats->file_pages = storage->file_pages; in bitmap_get_stats()
2357 stats->file = storage->file; in bitmap_get_stats()
2388 if (bitmap->storage.file && !init) { in __bitmap_resize()
2448 store.file = bitmap->storage.file; in __bitmap_resize()
2449 bitmap->storage.file = NULL; in __bitmap_resize()
2451 if (store.sb_page && bitmap->storage.sb_page) in __bitmap_resize()
2453 page_address(bitmap->storage.sb_page), in __bitmap_resize()
2457 md_bitmap_file_unmap(&bitmap->storage); in __bitmap_resize()
2458 bitmap->storage = store; in __bitmap_resize()
2559 for (i = 0; i < bitmap->storage.file_pages; i++) in __bitmap_resize()
2712 if (bitmap && sectors < (bitmap->storage.bytes + 511) >> 9) in space_store()