aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/blktrace.c3
-rw-r--r--block/ioctl.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/block/blktrace.c b/block/blktrace.c
index d3679dd1d220..d36b32ed22f4 100644
--- a/block/blktrace.c
+++ b/block/blktrace.c
@@ -363,10 +363,9 @@ static int blk_trace_setup(request_queue_t *q, struct block_device *bdev,
363 if (!bt->dropped_file) 363 if (!bt->dropped_file)
364 goto err; 364 goto err;
365 365
366 bt->rchan = relay_open("trace", dir, buts.buf_size, buts.buf_nr, &blk_relay_callbacks); 366 bt->rchan = relay_open("trace", dir, buts.buf_size, buts.buf_nr, &blk_relay_callbacks, bt);
367 if (!bt->rchan) 367 if (!bt->rchan)
368 goto err; 368 goto err;
369 bt->rchan->private_data = bt;
370 369
371 bt->act_mask = buts.act_mask; 370 bt->act_mask = buts.act_mask;
372 if (!bt->act_mask) 371 if (!bt->act_mask)
diff --git a/block/ioctl.c b/block/ioctl.c
index f6962b64660e..e3f5eb9882cf 100644
--- a/block/ioctl.c
+++ b/block/ioctl.c
@@ -61,7 +61,7 @@ static int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_arg __user
61 } 61 }
62 } 62 }
63 /* all seems OK */ 63 /* all seems OK */
64 add_partition(disk, part, start, length); 64 add_partition(disk, part, start, length, ADDPART_FLAG_NONE);
65 mutex_unlock(&bdev->bd_mutex); 65 mutex_unlock(&bdev->bd_mutex);
66 return 0; 66 return 0;
67 case BLKPG_DEL_PARTITION: 67 case BLKPG_DEL_PARTITION: