Lines Matching defs:bitmap
151 struct bitmap { struct
153 struct bitmap_counts { argument
166 struct mddev *mddev; /* the md device that the bitmap is for */ argument
171 struct bitmap_storage { argument
174 /* cached copy of the bitmap file superblock */ argument
196 * the bitmap daemon - periodically wakes up and sweeps the bitmap argument
201 * when we lasted called end_sync to update bitmap with resync argument
206 /* pending writes to the bitmap file */ argument
217 static int __bitmap_resize(struct bitmap *bitmap, sector_t blocks, argument
220 static inline char *bmname(struct bitmap *bitmap) in bmname()
225 static bool __bitmap_enabled(struct bitmap *bitmap) in __bitmap_enabled()
233 struct bitmap *bitmap = mddev->bitmap; in bitmap_enabled() local
251 static int md_bitmap_checkpage(struct bitmap_counts *bitmap, in md_bitmap_checkpage()
313 static void md_bitmap_checkfree(struct bitmap_counts *bitmap, unsigned long page) in md_bitmap_checkfree()
425 static int __write_sb_page(struct md_rdev *rdev, struct bitmap *bitmap, in __write_sb_page()
481 static void write_sb_page(struct bitmap *bitmap, unsigned long pg_index, in write_sb_page()
501 static void write_file_page(struct bitmap *bitmap, struct page *page, int wait) in write_file_page()
520 struct bitmap *bitmap = bh->b_private; in end_bitmap_write() local
553 struct bitmap *bitmap, unsigned long count, struct page *page) in read_file_page()
615 static void write_file_page(struct bitmap *bitmap, struct page *page, int wait) in write_file_page()
619 struct bitmap *bitmap, unsigned long count, struct page *page) in read_file_page()
636 static void filemap_write_page(struct bitmap *bitmap, unsigned long pg_index, in filemap_write_page()
658 static void md_bitmap_wait_writes(struct bitmap *bitmap) in md_bitmap_wait_writes()
679 struct bitmap *bitmap = data; in bitmap_update_sb() local
716 static void bitmap_print_sb(struct bitmap *bitmap) in bitmap_print_sb()
755 static int md_bitmap_new_disk_sb(struct bitmap *bitmap) in md_bitmap_new_disk_sb()
814 static int md_bitmap_read_sb(struct bitmap *bitmap) in md_bitmap_read_sb()
1093 static void md_bitmap_file_kick(struct bitmap *bitmap) in md_bitmap_file_kick()
1115 static inline void set_page_attr(struct bitmap *bitmap, int pnum, in set_page_attr()
1121 static inline void clear_page_attr(struct bitmap *bitmap, int pnum, in clear_page_attr()
1127 static inline int test_page_attr(struct bitmap *bitmap, int pnum, in test_page_attr()
1133 static inline int test_and_clear_page_attr(struct bitmap *bitmap, int pnum, in test_and_clear_page_attr()
1146 static void md_bitmap_file_set_bit(struct bitmap *bitmap, sector_t block) in md_bitmap_file_set_bit()
1177 static void md_bitmap_file_clear_bit(struct bitmap *bitmap, sector_t block) in md_bitmap_file_clear_bit()
1207 static int md_bitmap_file_test_bit(struct bitmap *bitmap, sector_t block) in md_bitmap_file_test_bit()
1231 static void __bitmap_unplug(struct bitmap *bitmap) in __bitmap_unplug()
1266 struct bitmap *bitmap; member
1279 static void bitmap_unplug_async(struct bitmap *bitmap) in bitmap_unplug_async()
1295 struct bitmap *bitmap = mddev->bitmap; in bitmap_unplug() local
1319 static int md_bitmap_init_from_disk(struct bitmap *bitmap, sector_t start) in md_bitmap_init_from_disk()
1445 struct bitmap *bitmap = mddev->bitmap; in bitmap_write_all() local
1459 static void md_bitmap_count_page(struct bitmap_counts *bitmap, in md_bitmap_count_page()
1468 static void md_bitmap_set_pending(struct bitmap_counts *bitmap, sector_t offset) in md_bitmap_set_pending()
1506 struct bitmap *bitmap; in bitmap_daemon_work() local
1625 static bitmap_counter_t *md_bitmap_get_counter(struct bitmap_counts *bitmap, in md_bitmap_get_counter()
1678 struct bitmap *bitmap = mddev->bitmap; in bitmap_startwrite() local
1733 struct bitmap *bitmap = mddev->bitmap; in bitmap_endwrite() local
1778 static bool __bitmap_start_sync(struct bitmap *bitmap, sector_t offset, in __bitmap_start_sync()
1833 static void __bitmap_end_sync(struct bitmap *bitmap, sector_t offset, in __bitmap_end_sync()
1878 struct bitmap *bitmap = mddev->bitmap; in bitmap_close_sync() local
1894 struct bitmap *bitmap = mddev->bitmap; in bitmap_cond_end_sync() local
1924 struct bitmap *bitmap = mddev->bitmap; in bitmap_sync_with_cluster() local
1940 static void md_bitmap_set_memory_bits(struct bitmap *bitmap, sector_t offset, int needed) in md_bitmap_set_memory_bits()
1971 struct bitmap *bitmap = mddev->bitmap; in bitmap_dirty_bits() local
1992 struct bitmap *bitmap = mddev->bitmap; in bitmap_flush() local
2017 struct bitmap *bitmap = data; in md_bitmap_free() local
2051 struct bitmap *bitmap = mddev->bitmap; in bitmap_start_behind_write() local
2068 struct bitmap *bitmap = mddev->bitmap; in bitmap_end_behind_write() local
2082 struct bitmap *bitmap = mddev->bitmap; in bitmap_wait_behind_writes() local
2096 struct bitmap *bitmap = mddev->bitmap; in bitmap_destroy() local
2122 struct bitmap *bitmap; in __bitmap_create() local
2210 struct bitmap *bitmap = __bitmap_create(mddev, slot); in bitmap_create() local
2224 struct bitmap *bitmap = mddev->bitmap; in bitmap_load() local
2280 struct bitmap *bitmap; in bitmap_get_from_slot() local
2306 struct bitmap *bitmap; in bitmap_copy_from_slot() local
2346 struct bitmap *bitmap = data; in bitmap_set_pages() local
2355 struct bitmap *bitmap = data; in bitmap_get_stats() local
2381 static int __bitmap_resize(struct bitmap *bitmap, sector_t blocks, in __bitmap_resize()
2591 struct bitmap *bitmap = mddev->bitmap; in bitmap_resize() local
2716 struct bitmap *bitmap; in space_store() local
2905 struct bitmap *bitmap; in can_clear_show() local
2920 struct bitmap *bitmap = mddev->bitmap; in can_clear_store() local
2947 struct bitmap *bitmap; in behind_writes_used_show() local
2963 struct bitmap *bitmap = mddev->bitmap; in behind_writes_used_reset() local