Skip to content

Commit

Permalink
ANDROID: dm-bow: backport to 4.14
Browse files Browse the repository at this point in the history
Change-Id: Ib89b91adaa11b84744de9167bda57ff0056f4415
Signed-off-by: Paul Lawrence <paullawrence@google.com>
  • Loading branch information
PaulLawrenceGoogle committed Mar 25, 2019
1 parent de12cfe commit 9aa7b21
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/md/dm-bow.c
Expand Up @@ -5,13 +5,14 @@
*/

#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;
Expand Down Expand Up @@ -925,7 +926,7 @@ static int handle_sector0(struct bow_context *bc, struct bio *bio)
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;
Expand Down Expand Up @@ -1176,7 +1177,8 @@ static void dm_bow_status(struct dm_target *ti, status_type_t type,
}
}

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;
Expand Down

0 comments on commit 9aa7b21

Please sign in to comment.