Lines Matching refs:storage
212 struct bitmap_storage *store = &bitmap->storage; in write_sb_page()
289 if (bitmap->storage.file == NULL) { in write_page()
430 if (!bitmap->storage.sb_page) /* no superblock */ in bitmap_update_sb()
432 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_update_sb()
449 write_page(bitmap, bitmap->storage.sb_page, 1); in bitmap_update_sb()
457 if (!bitmap || !bitmap->storage.sb_page) in bitmap_print_sb()
459 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_print_sb()
497 bitmap->storage.sb_page = alloc_page(GFP_KERNEL | __GFP_ZERO); in bitmap_new_disk_sb()
498 if (bitmap->storage.sb_page == NULL) in bitmap_new_disk_sb()
500 bitmap->storage.sb_page->index = 0; in bitmap_new_disk_sb()
502 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_new_disk_sb()
563 if (!bitmap->storage.file && !bitmap->mddev->bitmap_info.offset) { in bitmap_read_sb()
575 bitmap->storage.sb_page = sb_page; in bitmap_read_sb()
593 if (bitmap->storage.file) { in bitmap_read_sb()
594 loff_t isize = i_size_read(bitmap->storage.file->f_mapping->host); in bitmap_read_sb()
597 err = read_page(bitmap->storage.file, 0, in bitmap_read_sb()
848 if (bitmap->storage.file) { in bitmap_file_kick()
851 ptr = d_path(&bitmap->storage.file->f_path, in bitmap_file_kick()
876 set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in set_page_attr()
882 clear_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in clear_page_attr()
888 return test_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in test_page_attr()
895 bitmap->storage.filemap_attr); in test_and_clear_page_attr()
911 page = filemap_get_page(&bitmap->storage, chunk); in bitmap_file_set_bit()
914 bit = file_page_offset(&bitmap->storage, chunk); in bitmap_file_set_bit()
935 page = filemap_get_page(&bitmap->storage, chunk); in bitmap_file_clear_bit()
938 bit = file_page_offset(&bitmap->storage, chunk); in bitmap_file_clear_bit()
959 page = filemap_get_page(&bitmap->storage, chunk); in bitmap_file_test_bit()
962 bit = file_page_offset(&bitmap->storage, chunk); in bitmap_file_test_bit()
981 if (!bitmap || !bitmap->storage.filemap || in bitmap_unplug()
987 for (i = 0; i < bitmap->storage.file_pages; i++) { in bitmap_unplug()
988 if (!bitmap->storage.filemap) in bitmap_unplug()
995 write_page(bitmap, bitmap->storage.filemap[i], 0); in bitmap_unplug()
998 if (bitmap->storage.file) in bitmap_unplug()
1031 struct bitmap_storage *store = &bitmap->storage; in bitmap_init_from_disk()
1074 index = file_page_index(&bitmap->storage, i); in bitmap_init_from_disk()
1075 bit = file_page_offset(&bitmap->storage, i); in bitmap_init_from_disk()
1154 if (!bitmap || !bitmap->storage.filemap) in bitmap_write_all()
1156 if (bitmap->storage.file) in bitmap_write_all()
1160 for (i = 0; i < bitmap->storage.file_pages; i++) in bitmap_write_all()
1226 for (j = 0; j < bitmap->storage.file_pages; j++) in bitmap_daemon_work()
1238 if (bitmap->storage.filemap) { in bitmap_daemon_work()
1239 sb = kmap_atomic(bitmap->storage.sb_page); in bitmap_daemon_work()
1295 j < bitmap->storage.file_pages in bitmap_daemon_work()
1304 write_page(bitmap, bitmap->storage.filemap[j], 0); in bitmap_daemon_work()
1692 bitmap_file_unmap(&bitmap->storage); in bitmap_free()
1765 bitmap->storage.file = file; in bitmap_create()
1904 for (i = 0; i < bitmap->storage.file_pages; i++) in bitmap_copy_from_slot()
1937 if (bitmap->storage.file) { in bitmap_status()
1939 seq_path(seq, &bitmap->storage.file->f_path, " \t\n"); in bitmap_status()
2020 store.file = bitmap->storage.file; in bitmap_resize()
2021 bitmap->storage.file = NULL; in bitmap_resize()
2023 if (store.sb_page && bitmap->storage.sb_page) in bitmap_resize()
2025 page_address(bitmap->storage.sb_page), in bitmap_resize()
2027 bitmap_file_unmap(&bitmap->storage); in bitmap_resize()
2028 bitmap->storage = store; in bitmap_resize()
2096 for (i = 0; i < bitmap->storage.file_pages; i++) in bitmap_resize()
2232 sectors < (mddev->bitmap->storage.bytes + 511) >> 9) in space_store()