diff options
author | Mike Christie <mchristi@redhat.com> | 2016-06-05 14:31:49 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-06-07 13:41:38 -0600 |
commit | 469e3216e20a3946a292ff0414ab86de408d465e (patch) | |
tree | 63f09d57645da3ea07ff1634d4f2810fe12f3f89 /drivers | |
parent | 95fe6c1a209ef89d9f94dd04a0ad72be1487d5d5 (diff) | |
download | linux-stable-469e3216e20a3946a292ff0414ab86de408d465e.tar.gz linux-stable-469e3216e20a3946a292ff0414ab86de408d465e.tar.bz2 linux-stable-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')
-rw-r--r-- | drivers/md/dm-thin.c | 2 |
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) |