Lines Matching refs:storage

183 	} storage;  member
225 return bitmap->storage.filemap && in __bitmap_enabled()
428 struct bitmap_storage *store = &bitmap->storage; in __write_sb_page()
429 unsigned int bitmap_limit = (bitmap->storage.file_pages - pg_index) << in __write_sb_page()
637 struct bitmap_storage *store = &bitmap->storage; in filemap_write_page()
658 if (bitmap->storage.file) in md_bitmap_wait_writes()
683 if (!bitmap->storage.sb_page) /* no superblock */ in bitmap_update_sb()
685 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_update_sb()
707 if (bitmap->storage.file) in bitmap_update_sb()
708 write_file_page(bitmap, bitmap->storage.sb_page, 1); in bitmap_update_sb()
710 write_sb_page(bitmap, bitmap->storage.sb_index, in bitmap_update_sb()
711 bitmap->storage.sb_page, 1); in bitmap_update_sb()
718 if (!bitmap || !bitmap->storage.sb_page) in bitmap_print_sb()
720 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_print_sb()
758 bitmap->storage.sb_page = alloc_page(GFP_KERNEL | __GFP_ZERO); in md_bitmap_new_disk_sb()
759 if (bitmap->storage.sb_page == NULL) in md_bitmap_new_disk_sb()
761 bitmap->storage.sb_index = 0; in md_bitmap_new_disk_sb()
763 sb = kmap_atomic(bitmap->storage.sb_page); in md_bitmap_new_disk_sb()
824 if (!bitmap->storage.file && !bitmap->mddev->bitmap_info.offset) { in md_bitmap_read_sb()
836 bitmap->storage.sb_page = sb_page; in md_bitmap_read_sb()
854 if (bitmap->storage.file) { in md_bitmap_read_sb()
855 loff_t isize = i_size_read(bitmap->storage.file->f_mapping->host); in md_bitmap_read_sb()
858 err = read_file_page(bitmap->storage.file, 0, in md_bitmap_read_sb()
1096 if (bitmap->storage.file) { in md_bitmap_file_kick()
1098 bmname(bitmap), bitmap->storage.file); in md_bitmap_file_kick()
1116 set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in set_page_attr()
1122 clear_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in clear_page_attr()
1128 return test_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in test_page_attr()
1135 bitmap->storage.filemap_attr); in test_and_clear_page_attr()
1150 struct bitmap_storage *store = &bitmap->storage; in md_bitmap_file_set_bit()
1158 page = filemap_get_page(&bitmap->storage, chunk); in md_bitmap_file_set_bit()
1161 bit = file_page_offset(&bitmap->storage, chunk); in md_bitmap_file_set_bit()
1181 struct bitmap_storage *store = &bitmap->storage; in md_bitmap_file_clear_bit()
1189 page = filemap_get_page(&bitmap->storage, chunk); in md_bitmap_file_clear_bit()
1192 bit = file_page_offset(&bitmap->storage, chunk); in md_bitmap_file_clear_bit()
1213 page = filemap_get_page(&bitmap->storage, chunk); in md_bitmap_file_test_bit()
1216 bit = file_page_offset(&bitmap->storage, chunk); in md_bitmap_file_test_bit()
1240 for (i = 0; i < bitmap->storage.file_pages; i++) { in __bitmap_unplug()
1321 struct bitmap_storage *store = &bitmap->storage; in md_bitmap_init_from_disk()
1403 struct page *page = filemap_get_page(&bitmap->storage, i); in md_bitmap_init_from_disk()
1404 unsigned long bit = file_page_offset(&bitmap->storage, i); in md_bitmap_init_from_disk()
1444 if (!bitmap || !bitmap->storage.filemap) in bitmap_write_all()
1448 if (bitmap->storage.file) in bitmap_write_all()
1451 for (i = 0; i < bitmap->storage.file_pages; i++) in bitmap_write_all()
1535 for (j = 0; j < bitmap->storage.file_pages; j++) in bitmap_daemon_work()
1547 if (bitmap->storage.filemap) { in bitmap_daemon_work()
1548 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_daemon_work()
1603 j < bitmap->storage.file_pages in bitmap_daemon_work()
1610 if (bitmap->storage.filemap && in bitmap_daemon_work()
2049 md_bitmap_file_unmap(&bitmap->storage); in md_bitmap_free()
2143 bitmap->storage.file = file; in __bitmap_create()
2315 for (i = 0; i < bitmap->storage.file_pages; i++) in bitmap_copy_from_slot()
2337 struct bitmap_storage *storage; in bitmap_get_stats() local
2345 sb = kmap_local_page(bitmap->storage.sb_page); in bitmap_get_stats()
2353 storage = &bitmap->storage; in bitmap_get_stats()
2354 stats->file_pages = storage->file_pages; in bitmap_get_stats()
2355 stats->file = storage->file; in bitmap_get_stats()
2386 if (bitmap->storage.file && !init) { in __bitmap_resize()
2446 store.file = bitmap->storage.file; in __bitmap_resize()
2447 bitmap->storage.file = NULL; in __bitmap_resize()
2449 if (store.sb_page && bitmap->storage.sb_page) in __bitmap_resize()
2451 page_address(bitmap->storage.sb_page), in __bitmap_resize()
2454 md_bitmap_file_unmap(&bitmap->storage); in __bitmap_resize()
2455 bitmap->storage = store; in __bitmap_resize()
2556 for (i = 0; i < bitmap->storage.file_pages; i++) in __bitmap_resize()
2710 if (bitmap && sectors < (bitmap->storage.bytes + 511) >> 9) in space_store()