Lines Matching refs:storage
216 struct bitmap_storage *store = &bitmap->storage; in write_sb_page()
291 if (bitmap->storage.file == NULL) { in write_page()
430 if (bitmap->storage.file) in bitmap_wait_writes()
454 if (!bitmap->storage.sb_page) /* no superblock */ in bitmap_update_sb()
456 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_update_sb()
473 write_page(bitmap, bitmap->storage.sb_page, 1); in bitmap_update_sb()
482 if (!bitmap || !bitmap->storage.sb_page) in bitmap_print_sb()
484 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_print_sb()
522 bitmap->storage.sb_page = alloc_page(GFP_KERNEL | __GFP_ZERO); in bitmap_new_disk_sb()
523 if (bitmap->storage.sb_page == NULL) in bitmap_new_disk_sb()
525 bitmap->storage.sb_page->index = 0; in bitmap_new_disk_sb()
527 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_new_disk_sb()
588 if (!bitmap->storage.file && !bitmap->mddev->bitmap_info.offset) { in bitmap_read_sb()
600 bitmap->storage.sb_page = sb_page; in bitmap_read_sb()
618 if (bitmap->storage.file) { in bitmap_read_sb()
619 loff_t isize = i_size_read(bitmap->storage.file->f_mapping->host); in bitmap_read_sb()
622 err = read_page(bitmap->storage.file, 0, in bitmap_read_sb()
868 if (bitmap->storage.file) { in bitmap_file_kick()
871 ptr = file_path(bitmap->storage.file, in bitmap_file_kick()
894 set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in set_page_attr()
900 clear_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in clear_page_attr()
906 return test_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in test_page_attr()
913 bitmap->storage.filemap_attr); in test_and_clear_page_attr()
928 struct bitmap_storage *store = &bitmap->storage; in bitmap_file_set_bit()
934 page = filemap_get_page(&bitmap->storage, chunk); in bitmap_file_set_bit()
937 bit = file_page_offset(&bitmap->storage, chunk); in bitmap_file_set_bit()
957 struct bitmap_storage *store = &bitmap->storage; in bitmap_file_clear_bit()
963 page = filemap_get_page(&bitmap->storage, chunk); in bitmap_file_clear_bit()
966 bit = file_page_offset(&bitmap->storage, chunk); in bitmap_file_clear_bit()
987 page = filemap_get_page(&bitmap->storage, chunk); in bitmap_file_test_bit()
990 bit = file_page_offset(&bitmap->storage, chunk); in bitmap_file_test_bit()
1010 if (!bitmap || !bitmap->storage.filemap || in bitmap_unplug()
1016 for (i = 0; i < bitmap->storage.file_pages; i++) { in bitmap_unplug()
1017 if (!bitmap->storage.filemap) in bitmap_unplug()
1030 write_page(bitmap, bitmap->storage.filemap[i], 0); in bitmap_unplug()
1064 struct bitmap_storage *store = &bitmap->storage; in bitmap_init_from_disk()
1106 index = file_page_index(&bitmap->storage, i); in bitmap_init_from_disk()
1107 bit = file_page_offset(&bitmap->storage, i); in bitmap_init_from_disk()
1185 if (!bitmap || !bitmap->storage.filemap) in bitmap_write_all()
1187 if (bitmap->storage.file) in bitmap_write_all()
1191 for (i = 0; i < bitmap->storage.file_pages; i++) in bitmap_write_all()
1261 for (j = 0; j < bitmap->storage.file_pages; j++) in bitmap_daemon_work()
1273 if (bitmap->storage.filemap) { in bitmap_daemon_work()
1274 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_daemon_work()
1331 j < bitmap->storage.file_pages in bitmap_daemon_work()
1340 write_page(bitmap, bitmap->storage.filemap[j], 0); in bitmap_daemon_work()
1752 bitmap_file_unmap(&bitmap->storage); in md_bitmap_free()
1846 bitmap->storage.file = file; in bitmap_create()
2003 for (i = 0; i < bitmap->storage.file_pages; i++) in bitmap_copy_from_slot()
2036 if (bitmap->storage.file) { in bitmap_status()
2038 seq_file_path(seq, bitmap->storage.file, " \t\n"); in bitmap_status()
2067 if (bitmap->storage.file && !init) { in bitmap_resize()
2126 store.file = bitmap->storage.file; in bitmap_resize()
2127 bitmap->storage.file = NULL; in bitmap_resize()
2129 if (store.sb_page && bitmap->storage.sb_page) in bitmap_resize()
2131 page_address(bitmap->storage.sb_page), in bitmap_resize()
2133 bitmap_file_unmap(&bitmap->storage); in bitmap_resize()
2134 bitmap->storage = store; in bitmap_resize()
2240 for (i = 0; i < bitmap->storage.file_pages; i++) in bitmap_resize()
2395 sectors < (mddev->bitmap->storage.bytes + 511) >> 9) in space_store()