wait_for_completion(&done);
 }
 
-void md_bitmap_unplug(struct mddev *mddev, bool sync)
+static void bitmap_unplug(struct mddev *mddev, bool sync)
 {
        struct bitmap *bitmap = mddev->bitmap;
 
        else
                bitmap_unplug_async(bitmap);
 }
-EXPORT_SYMBOL_GPL(md_bitmap_unplug);
 
 static void md_bitmap_set_memory_bits(struct bitmap *bitmap, sector_t offset, int needed);
 
        .flush                  = bitmap_flush,
        .write_all              = bitmap_write_all,
        .dirty_bits             = bitmap_dirty_bits,
+       .unplug                 = bitmap_unplug,
 
        .startwrite             = bitmap_startwrite,
        .endwrite               = bitmap_endwrite,
 
        void (*write_all)(struct mddev *mddev);
        void (*dirty_bits)(struct mddev *mddev, unsigned long s,
                           unsigned long e);
+       void (*unplug)(struct mddev *mddev, bool sync);
 
        int (*startwrite)(struct mddev *mddev, sector_t offset,
                          unsigned long sectors, bool behind);
 void mddev_set_bitmap_ops(struct mddev *mddev);
 
 /* these are exported */
-void md_bitmap_unplug(struct mddev *mddev, bool sync);
 void md_bitmap_daemon_work(struct mddev *mddev);
 
 int md_bitmap_resize(struct bitmap *bitmap, sector_t blocks,
 
                mddev->bitmap_ops->dirty_bits(mddev, chunk, end_chunk);
                buf = skip_spaces(end);
        }
-       md_bitmap_unplug(mddev, true); /* flush the bits to disk */
+       mddev->bitmap_ops->unplug(mddev, true); /* flush the bits to disk */
 out:
        mddev_unlock(mddev);
        return len;
 
  */
 static inline void raid1_prepare_flush_writes(struct mddev *mddev)
 {
-       md_bitmap_unplug(mddev, current->bio_list == NULL);
+       mddev->bitmap_ops->unplug(mddev, current->bio_list == NULL);
 }
 
 /*
 
                        /* Now is a good time to flush some bitmap updates */
                        conf->seq_flush++;
                        spin_unlock_irq(&conf->device_lock);
-                       md_bitmap_unplug(mddev, true);
+                       mddev->bitmap_ops->unplug(mddev, true);
                        spin_lock_irq(&conf->device_lock);
                        conf->seq_write = conf->seq_flush;
                        activate_bit_delay(conf, conf->temp_inactive_list);