*/
#include "dm.h"
+#include "dm-bufio.h"
#include "dm-core.h"
#include <linux/crc32.h>
-#include <linux/dm-bufio.h>
#include <linux/module.h>
#define DM_MSG_PREFIX "bow"
+#define SECTOR_SIZE 512
struct log_entry {
u64 source;
struct bio * split = bio_split(bio,
bc->block_size >> SECTOR_SHIFT,
GFP_NOIO,
- &fs_bio_set);
+ fs_bio_set);
if (!split) {
DMERR("Failed to split bio");
bio->bi_status = BLK_STS_RESOURCE;
}
}
-int dm_bow_prepare_ioctl(struct dm_target *ti, struct block_device **bdev)
+int dm_bow_prepare_ioctl(struct dm_target *ti, struct block_device **bdev,
+ fmode_t *mode)
{
struct bow_context *bc = ti->private;
struct dm_dev *dev = bc->dev;