}
 
 /* caller need to free returned bitmap with md_bitmap_free() */
-struct bitmap *get_bitmap_from_slot(struct mddev *mddev, int slot)
+static struct bitmap *bitmap_get_from_slot(struct mddev *mddev, int slot)
 {
        int rv = 0;
        struct bitmap *bitmap;
 
        return bitmap;
 }
-EXPORT_SYMBOL(get_bitmap_from_slot);
 
 /* Loads the bitmap associated with slot and copies the resync information
  * to our bitmap
        struct bitmap_counts *counts;
        struct bitmap *bitmap;
 
-       bitmap = get_bitmap_from_slot(mddev, slot);
+       bitmap = bitmap_get_from_slot(mddev, slot);
        if (IS_ERR(bitmap)) {
                pr_err("%s can't get bitmap from slot %d\n", __func__, slot);
                return -1;
        .get_stats              = bitmap_get_stats,
 
        .sync_with_cluster      = bitmap_sync_with_cluster,
+       .get_from_slot          = bitmap_get_from_slot,
 };
 
 void mddev_set_bitmap_ops(struct mddev *mddev)
 
        void (*sync_with_cluster)(struct mddev *mddev,
                                  sector_t old_lo, sector_t old_hi,
                                  sector_t new_lo, sector_t new_hi);
+       struct bitmap *(*get_from_slot)(struct mddev *mddev, int slot);
 };
 
 /* the bitmap API */
 
 /* these are exported */
 
-struct bitmap *get_bitmap_from_slot(struct mddev *mddev, int slot);
 int md_bitmap_copy_from_slot(struct mddev *mddev, int slot,
                             sector_t *lo, sector_t *hi, bool clear_bits);
 void md_bitmap_set_pages(struct bitmap *bitmap, unsigned long pages);
 
                if (i == md_cluster_ops->slot_number(mddev))
                        continue;
 
-               bitmap = get_bitmap_from_slot(mddev, i);
+               bitmap = mddev->bitmap_ops->get_from_slot(mddev, i);
                if (IS_ERR(bitmap)) {
                        pr_err("can't get bitmap from slot %d\n", i);
                        bitmap = NULL;
                if (i == current_slot)
                        continue;
 
-               bitmap = get_bitmap_from_slot(mddev, i);
+               bitmap = mddev->bitmap_ops->get_from_slot(mddev, i);
                if (IS_ERR(bitmap)) {
                        pr_err("can't get bitmap from slot %d\n", i);
                        return -1;