/* This function is called from the run method of all personalities that do not support bitmaps. It prints an error message and returns non-zero if mddev has a bitmap. Otherwise, it returns 0.  */
int md_check_no_bitmap(mddev_t *mddev)
/* This function is called from the run method of all personalities that do not support bitmaps. It prints an error message and returns non-zero if mddev has a bitmap. Otherwise, it returns 0.  */
int md_check_no_bitmap(mddev_t *mddev)
{
	if (!mddev->bitmap_info.file && !mddev->bitmap_info.offset)
		return 0;
	printk(KERN_ERR "%s: bitmaps are not supported for %s\n",
		mdname(mddev), mddev->pers->name);
	return 1;
}