diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-05 19:21:08 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-08 11:25:38 -0600 |
commit | ee472d835c264a4cb77f8cf878603e1e40f3559e (patch) | |
tree | 923d051ac77e50e2871eefc7c6f7da43da3538c9 /fs/dax.c | |
parent | c20cfc27a47307e811346f85959cf3cc07ae42f9 (diff) | |
download | op-kernel-dev-ee472d835c264a4cb77f8cf878603e1e40f3559e.zip op-kernel-dev-ee472d835c264a4cb77f8cf878603e1e40f3559e.tar.gz |
block: add a flags argument to (__)blkdev_issue_zeroout
Turn the existing discard flag into a new BLKDEV_ZERO_UNMAP flag with
similar semantics, but without referring to diѕcard.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/dax.c')
-rw-r--r-- | fs/dax.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -982,7 +982,7 @@ int __dax_zero_page_range(struct block_device *bdev, sector_t sector, sector_t start_sector = dax.sector + (offset >> 9); return blkdev_issue_zeroout(bdev, start_sector, - length >> 9, GFP_NOFS, true); + length >> 9, GFP_NOFS, 0); } else { if (dax_map_atomic(bdev, &dax) < 0) return PTR_ERR(dax.addr); |