projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus/i2c/2636-rc5' of git://git.fluff.org/bjdooks/linux
[firefly-linux-kernel-4.4.55.git]
/
block
/
blk-lib.c
diff --git
a/block/blk-lib.c
b/block/blk-lib.c
index c1fc55a83ba14ad81f86567c14fc283ae9350b3f..c392029a104e0f233fb10022a323ee1ab7ed0118 100644
(file)
--- a/
block/blk-lib.c
+++ b/
block/blk-lib.c
@@
-62,6
+62,12
@@
int blkdev_issue_discard(struct block_device *bdev, sector_t sector,
max_discard_sectors &= ~(disc_sects - 1);
}
+ if (flags & BLKDEV_IFL_SECURE) {
+ if (!blk_queue_secdiscard(q))
+ return -EOPNOTSUPP;
+ type |= DISCARD_SECURE;
+ }
+
while (nr_sects && !ret) {
bio = bio_alloc(gfp_mask, 1);
if (!bio) {