Lines Matching defs:bitmap

149 struct bitmap {  struct
151 struct bitmap_counts { argument
164 struct mddev *mddev; /* the md device that the bitmap is for */ argument
169 struct bitmap_storage { argument
172 /* cached copy of the bitmap file superblock */ argument
194 * the bitmap daemon - periodically wakes up and sweeps the bitmap argument
199 * when we lasted called end_sync to update bitmap with resync argument
204 /* pending writes to the bitmap file */ argument
215 static int __bitmap_resize(struct bitmap *bitmap, sector_t blocks, argument
218 static inline char *bmname(struct bitmap *bitmap) in bmname()
223 static bool __bitmap_enabled(struct bitmap *bitmap) in __bitmap_enabled()
231 struct bitmap *bitmap = mddev->bitmap; in bitmap_enabled() local
249 static int md_bitmap_checkpage(struct bitmap_counts *bitmap, in md_bitmap_checkpage()
311 static void md_bitmap_checkfree(struct bitmap_counts *bitmap, unsigned long page) in md_bitmap_checkfree()
423 static int __write_sb_page(struct md_rdev *rdev, struct bitmap *bitmap, in __write_sb_page()
479 static void write_sb_page(struct bitmap *bitmap, unsigned long pg_index, in write_sb_page()
499 static void write_file_page(struct bitmap *bitmap, struct page *page, int wait) in write_file_page()
518 struct bitmap *bitmap = bh->b_private; in end_bitmap_write() local
551 struct bitmap *bitmap, unsigned long count, struct page *page) in read_file_page()
613 static void write_file_page(struct bitmap *bitmap, struct page *page, int wait) in write_file_page()
617 struct bitmap *bitmap, unsigned long count, struct page *page) in read_file_page()
634 static void filemap_write_page(struct bitmap *bitmap, unsigned long pg_index, in filemap_write_page()
656 static void md_bitmap_wait_writes(struct bitmap *bitmap) in md_bitmap_wait_writes()
677 struct bitmap *bitmap = data; in bitmap_update_sb() local
714 static void bitmap_print_sb(struct bitmap *bitmap) in bitmap_print_sb()
753 static int md_bitmap_new_disk_sb(struct bitmap *bitmap) in md_bitmap_new_disk_sb()
812 static int md_bitmap_read_sb(struct bitmap *bitmap) in md_bitmap_read_sb()
1091 static void md_bitmap_file_kick(struct bitmap *bitmap) in md_bitmap_file_kick()
1113 static inline void set_page_attr(struct bitmap *bitmap, int pnum, in set_page_attr()
1119 static inline void clear_page_attr(struct bitmap *bitmap, int pnum, in clear_page_attr()
1125 static inline int test_page_attr(struct bitmap *bitmap, int pnum, in test_page_attr()
1131 static inline int test_and_clear_page_attr(struct bitmap *bitmap, int pnum, in test_and_clear_page_attr()
1144 static void md_bitmap_file_set_bit(struct bitmap *bitmap, sector_t block) in md_bitmap_file_set_bit()
1175 static void md_bitmap_file_clear_bit(struct bitmap *bitmap, sector_t block) in md_bitmap_file_clear_bit()
1205 static int md_bitmap_file_test_bit(struct bitmap *bitmap, sector_t block) in md_bitmap_file_test_bit()
1229 static void __bitmap_unplug(struct bitmap *bitmap) in __bitmap_unplug()
1264 struct bitmap *bitmap; member
1277 static void bitmap_unplug_async(struct bitmap *bitmap) in bitmap_unplug_async()
1293 struct bitmap *bitmap = mddev->bitmap; in bitmap_unplug() local
1317 static int md_bitmap_init_from_disk(struct bitmap *bitmap, sector_t start) in md_bitmap_init_from_disk()
1443 struct bitmap *bitmap = mddev->bitmap; in bitmap_write_all() local
1457 static void md_bitmap_count_page(struct bitmap_counts *bitmap, in md_bitmap_count_page()
1466 static void md_bitmap_set_pending(struct bitmap_counts *bitmap, sector_t offset) in md_bitmap_set_pending()
1504 struct bitmap *bitmap; in bitmap_daemon_work() local
1623 static bitmap_counter_t *md_bitmap_get_counter(struct bitmap_counts *bitmap, in md_bitmap_get_counter()
1676 struct bitmap *bitmap = mddev->bitmap; in bitmap_startwrite() local
1731 struct bitmap *bitmap = mddev->bitmap; in bitmap_endwrite() local
1776 static bool __bitmap_start_sync(struct bitmap *bitmap, sector_t offset, in __bitmap_start_sync()
1831 static void __bitmap_end_sync(struct bitmap *bitmap, sector_t offset, in __bitmap_end_sync()
1876 struct bitmap *bitmap = mddev->bitmap; in bitmap_close_sync() local
1892 struct bitmap *bitmap = mddev->bitmap; in bitmap_cond_end_sync() local
1922 struct bitmap *bitmap = mddev->bitmap; in bitmap_sync_with_cluster() local
1938 static void md_bitmap_set_memory_bits(struct bitmap *bitmap, sector_t offset, int needed) in md_bitmap_set_memory_bits()
1969 struct bitmap *bitmap = mddev->bitmap; in bitmap_dirty_bits() local
1990 struct bitmap *bitmap = mddev->bitmap; in bitmap_flush() local
2015 struct bitmap *bitmap = data; in md_bitmap_free() local
2049 struct bitmap *bitmap = mddev->bitmap; in bitmap_start_behind_write() local
2066 struct bitmap *bitmap = mddev->bitmap; in bitmap_end_behind_write() local
2080 struct bitmap *bitmap = mddev->bitmap; in bitmap_wait_behind_writes() local
2094 struct bitmap *bitmap = mddev->bitmap; in bitmap_destroy() local
2120 struct bitmap *bitmap; in __bitmap_create() local
2208 struct bitmap *bitmap = __bitmap_create(mddev, slot); in bitmap_create() local
2222 struct bitmap *bitmap = mddev->bitmap; in bitmap_load() local
2278 struct bitmap *bitmap; in bitmap_get_from_slot() local
2304 struct bitmap *bitmap; in bitmap_copy_from_slot() local
2344 struct bitmap *bitmap = data; in bitmap_set_pages() local
2353 struct bitmap *bitmap = data; in bitmap_get_stats() local
2379 static int __bitmap_resize(struct bitmap *bitmap, sector_t blocks, in __bitmap_resize()
2589 struct bitmap *bitmap = mddev->bitmap; in bitmap_resize() local
2714 struct bitmap *bitmap; in space_store() local
2903 struct bitmap *bitmap; in can_clear_show() local
2918 struct bitmap *bitmap = mddev->bitmap; in can_clear_store() local
2945 struct bitmap *bitmap; in behind_writes_used_show() local
2961 struct bitmap *bitmap = mddev->bitmap; in behind_writes_used_reset() local