summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.c
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2016-06-05 21:31:49 +0200
committerJens Axboe <axboe@fb.com>2016-06-07 21:41:38 +0200
commit469e3216e20a3946a292ff0414ab86de408d465e (patch)
tree63f09d57645da3ea07ff1634d4f2810fe12f3f89 /drivers/md/dm-thin.c
parentblock, fs, mm, drivers: use bio set/get op accessors (diff)
downloadlinux-469e3216e20a3946a292ff0414ab86de408d465e.tar.xz
linux-469e3216e20a3946a292ff0414ab86de408d465e.zip
block discard: use bio set op accessor
This converts the block issue discard helper and users to use the bio_set_op_attrs accessor and only pass in the operation flags like REQ_SEQURE. Signed-off-by: Mike Christie <mchristi@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r--drivers/md/dm-thin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index 8c070eed982c..e8661c25d3ea 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -360,7 +360,7 @@ static int issue_discard(struct discard_op *op, dm_block_t data_b, dm_block_t da
sector_t len = block_to_sectors(tc->pool, data_e - data_b);
return __blkdev_issue_discard(tc->pool_dev->bdev, s, len,
- GFP_NOWAIT, REQ_WRITE | REQ_DISCARD, &op->bio);
+ GFP_NOWAIT, 0, &op->bio);
}
static void end_discard(struct discard_op *op, int r)