Lines Matching defs:bitmap

161 struct bitmap {  struct
163 struct bitmap_counts { argument
176 struct mddev *mddev; /* the md device that the bitmap is for */ argument
181 struct bitmap_storage { argument
184 /* cached copy of the bitmap file superblock */ argument
206 * the bitmap daemon - periodically wakes up and sweeps the bitmap argument
211 * when we lasted called end_sync to update bitmap with resync argument
216 /* pending writes to the bitmap file */ argument
227 static int __bitmap_resize(struct bitmap *bitmap, sector_t blocks, argument
230 static inline char *bmname(struct bitmap *bitmap) in bmname()
235 static bool __bitmap_enabled(struct bitmap *bitmap) in __bitmap_enabled()
243 struct bitmap *bitmap = mddev->bitmap; in bitmap_enabled() local
261 static int md_bitmap_checkpage(struct bitmap_counts *bitmap, in md_bitmap_checkpage()
323 static void md_bitmap_checkfree(struct bitmap_counts *bitmap, unsigned long page) in md_bitmap_checkfree()
435 static int __write_sb_page(struct md_rdev *rdev, struct bitmap *bitmap, in __write_sb_page()
491 static void write_sb_page(struct bitmap *bitmap, unsigned long pg_index, in write_sb_page()
511 static void write_file_page(struct bitmap *bitmap, struct page *page, int wait) in write_file_page()
530 struct bitmap *bitmap = bh->b_private; in end_bitmap_write() local
563 struct bitmap *bitmap, unsigned long count, struct page *page) in read_file_page()
625 static void write_file_page(struct bitmap *bitmap, struct page *page, int wait) in write_file_page()
629 struct bitmap *bitmap, unsigned long count, struct page *page) in read_file_page()
646 static void filemap_write_page(struct bitmap *bitmap, unsigned long pg_index, in filemap_write_page()
668 static void md_bitmap_wait_writes(struct bitmap *bitmap) in md_bitmap_wait_writes()
689 struct bitmap *bitmap = data; in bitmap_update_sb() local
726 static void bitmap_print_sb(struct bitmap *bitmap) in bitmap_print_sb()
765 static int md_bitmap_new_disk_sb(struct bitmap *bitmap) in md_bitmap_new_disk_sb()
824 static int md_bitmap_read_sb(struct bitmap *bitmap) in md_bitmap_read_sb()
1103 static void md_bitmap_file_kick(struct bitmap *bitmap) in md_bitmap_file_kick()
1125 static inline void set_page_attr(struct bitmap *bitmap, int pnum, in set_page_attr()
1131 static inline void clear_page_attr(struct bitmap *bitmap, int pnum, in clear_page_attr()
1137 static inline int test_page_attr(struct bitmap *bitmap, int pnum, in test_page_attr()
1143 static inline int test_and_clear_page_attr(struct bitmap *bitmap, int pnum, in test_and_clear_page_attr()
1156 static void md_bitmap_file_set_bit(struct bitmap *bitmap, sector_t block) in md_bitmap_file_set_bit()
1187 static void md_bitmap_file_clear_bit(struct bitmap *bitmap, sector_t block) in md_bitmap_file_clear_bit()
1217 static int md_bitmap_file_test_bit(struct bitmap *bitmap, sector_t block) in md_bitmap_file_test_bit()
1241 static void __bitmap_unplug(struct bitmap *bitmap) in __bitmap_unplug()
1276 struct bitmap *bitmap; member
1289 static void bitmap_unplug_async(struct bitmap *bitmap) in bitmap_unplug_async()
1305 struct bitmap *bitmap = mddev->bitmap; in bitmap_unplug() local
1329 static int md_bitmap_init_from_disk(struct bitmap *bitmap, sector_t start) in md_bitmap_init_from_disk()
1455 struct bitmap *bitmap = mddev->bitmap; in bitmap_write_all() local
1469 static void md_bitmap_count_page(struct bitmap_counts *bitmap, in md_bitmap_count_page()
1478 static void md_bitmap_set_pending(struct bitmap_counts *bitmap, sector_t offset) in md_bitmap_set_pending()
1516 struct bitmap *bitmap; in bitmap_daemon_work() local
1635 static bitmap_counter_t *md_bitmap_get_counter(struct bitmap_counts *bitmap, in md_bitmap_get_counter()
1688 struct bitmap *bitmap = mddev->bitmap; in bitmap_start_write() local
1742 struct bitmap *bitmap = mddev->bitmap; in bitmap_end_write() local
1787 static bool __bitmap_start_sync(struct bitmap *bitmap, sector_t offset, in __bitmap_start_sync()
1842 static void __bitmap_end_sync(struct bitmap *bitmap, sector_t offset, in __bitmap_end_sync()
1887 struct bitmap *bitmap = mddev->bitmap; in bitmap_close_sync() local
1903 struct bitmap *bitmap = mddev->bitmap; in bitmap_cond_end_sync() local
1933 struct bitmap *bitmap = mddev->bitmap; in bitmap_sync_with_cluster() local
1949 static void md_bitmap_set_memory_bits(struct bitmap *bitmap, sector_t offset, int needed) in md_bitmap_set_memory_bits()
1980 struct bitmap *bitmap = mddev->bitmap; in bitmap_dirty_bits() local
2001 struct bitmap *bitmap = mddev->bitmap; in bitmap_flush() local
2026 struct bitmap *bitmap = data; in md_bitmap_free() local
2060 struct bitmap *bitmap = mddev->bitmap; in bitmap_start_behind_write() local
2077 struct bitmap *bitmap = mddev->bitmap; in bitmap_end_behind_write() local
2091 struct bitmap *bitmap = mddev->bitmap; in bitmap_wait_behind_writes() local
2105 struct bitmap *bitmap = mddev->bitmap; in bitmap_destroy() local
2131 struct bitmap *bitmap; in __bitmap_create() local
2219 struct bitmap *bitmap = __bitmap_create(mddev, -1); in bitmap_create() local
2233 struct bitmap *bitmap = mddev->bitmap; in bitmap_load() local
2289 struct bitmap *bitmap; in bitmap_get_from_slot() local
2315 struct bitmap *bitmap; in bitmap_copy_from_slot() local
2355 struct bitmap *bitmap = data; in bitmap_set_pages() local
2364 struct bitmap *bitmap = data; in bitmap_get_stats() local
2390 static int __bitmap_resize(struct bitmap *bitmap, sector_t blocks, in __bitmap_resize()
2600 struct bitmap *bitmap = mddev->bitmap; in bitmap_resize() local
2725 struct bitmap *bitmap; in space_store() local
2914 struct bitmap *bitmap; in can_clear_show() local
2929 struct bitmap *bitmap = mddev->bitmap; in can_clear_store() local
2956 struct bitmap *bitmap; in behind_writes_used_show() local
2972 struct bitmap *bitmap = mddev->bitmap; in behind_writes_used_reset() local