Lines Matching refs:storage
229 struct bitmap_storage *store = &bitmap->storage; in __write_sb_page()
437 struct bitmap_storage *store = &bitmap->storage; in filemap_write_page()
458 if (bitmap->storage.file) in md_bitmap_wait_writes()
482 if (!bitmap->storage.sb_page) /* no superblock */ in md_bitmap_update_sb()
484 sb = kmap_atomic(bitmap->storage.sb_page); in md_bitmap_update_sb()
506 if (bitmap->storage.file) in md_bitmap_update_sb()
507 write_file_page(bitmap, bitmap->storage.sb_page, 1); in md_bitmap_update_sb()
509 write_sb_page(bitmap, bitmap->storage.sb_index, in md_bitmap_update_sb()
510 bitmap->storage.sb_page, 1); in md_bitmap_update_sb()
519 if (!bitmap || !bitmap->storage.sb_page) in md_bitmap_print_sb()
521 sb = kmap_atomic(bitmap->storage.sb_page); in md_bitmap_print_sb()
559 bitmap->storage.sb_page = alloc_page(GFP_KERNEL | __GFP_ZERO); in md_bitmap_new_disk_sb()
560 if (bitmap->storage.sb_page == NULL) in md_bitmap_new_disk_sb()
562 bitmap->storage.sb_index = 0; in md_bitmap_new_disk_sb()
564 sb = kmap_atomic(bitmap->storage.sb_page); in md_bitmap_new_disk_sb()
625 if (!bitmap->storage.file && !bitmap->mddev->bitmap_info.offset) { in md_bitmap_read_sb()
637 bitmap->storage.sb_page = sb_page; in md_bitmap_read_sb()
655 if (bitmap->storage.file) { in md_bitmap_read_sb()
656 loff_t isize = i_size_read(bitmap->storage.file->f_mapping->host); in md_bitmap_read_sb()
659 err = read_file_page(bitmap->storage.file, 0, in md_bitmap_read_sb()
897 if (bitmap->storage.file) { in md_bitmap_file_kick()
899 bmname(bitmap), bitmap->storage.file); in md_bitmap_file_kick()
917 set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in set_page_attr()
923 clear_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in clear_page_attr()
929 return test_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in test_page_attr()
936 bitmap->storage.filemap_attr); in test_and_clear_page_attr()
951 struct bitmap_storage *store = &bitmap->storage; in md_bitmap_file_set_bit()
958 page = filemap_get_page(&bitmap->storage, chunk); in md_bitmap_file_set_bit()
961 bit = file_page_offset(&bitmap->storage, chunk); in md_bitmap_file_set_bit()
981 struct bitmap_storage *store = &bitmap->storage; in md_bitmap_file_clear_bit()
988 page = filemap_get_page(&bitmap->storage, chunk); in md_bitmap_file_clear_bit()
991 bit = file_page_offset(&bitmap->storage, chunk); in md_bitmap_file_clear_bit()
1012 page = filemap_get_page(&bitmap->storage, chunk); in md_bitmap_file_test_bit()
1015 bit = file_page_offset(&bitmap->storage, chunk); in md_bitmap_file_test_bit()
1039 for (i = 0; i < bitmap->storage.file_pages; i++) { in md_bitmap_unplug()
1110 struct bitmap_storage *store = &bitmap->storage; in md_bitmap_init_from_disk()
1192 struct page *page = filemap_get_page(&bitmap->storage, i); in md_bitmap_init_from_disk()
1193 unsigned long bit = file_page_offset(&bitmap->storage, i); in md_bitmap_init_from_disk()
1234 if (!bitmap || !bitmap->storage.filemap) in md_bitmap_write_all()
1236 if (bitmap->storage.file) in md_bitmap_write_all()
1240 for (i = 0; i < bitmap->storage.file_pages; i++) in md_bitmap_write_all()
1327 for (j = 0; j < bitmap->storage.file_pages; j++) in md_bitmap_daemon_work()
1339 if (bitmap->storage.filemap) { in md_bitmap_daemon_work()
1340 sb = kmap_atomic(bitmap->storage.sb_page); in md_bitmap_daemon_work()
1395 j < bitmap->storage.file_pages in md_bitmap_daemon_work()
1402 if (bitmap->storage.filemap && in md_bitmap_daemon_work()
1825 md_bitmap_file_unmap(&bitmap->storage); in md_bitmap_free()
1920 bitmap->storage.file = file; in md_bitmap_create()
2082 for (i = 0; i < bitmap->storage.file_pages; i++) in md_bitmap_copy_from_slot()
2116 if (bitmap->storage.file) { in md_bitmap_status()
2118 seq_file_path(seq, bitmap->storage.file, " \t\n"); in md_bitmap_status()
2147 if (bitmap->storage.file && !init) { in md_bitmap_resize()
2207 store.file = bitmap->storage.file; in md_bitmap_resize()
2208 bitmap->storage.file = NULL; in md_bitmap_resize()
2210 if (store.sb_page && bitmap->storage.sb_page) in md_bitmap_resize()
2212 page_address(bitmap->storage.sb_page), in md_bitmap_resize()
2215 md_bitmap_file_unmap(&bitmap->storage); in md_bitmap_resize()
2216 bitmap->storage = store; in md_bitmap_resize()
2317 for (i = 0; i < bitmap->storage.file_pages; i++) in md_bitmap_resize()
2473 sectors < (mddev->bitmap->storage.bytes + 511) >> 9) in space_store()