mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
block: add a separate operation type for secure erase
Instead of overloading the discard support with the REQ_SECURE flag. Use the opportunity to rename the queue flag as well, and remove the dead checks for this flag in the RAID 1 and RAID 10 drivers that don't claim support for secure erase. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
56332f02a5
commit
288dab8a35
12 changed files with 63 additions and 65 deletions
|
|
@ -1791,6 +1791,10 @@ void blk_fill_rwbs(char *rwbs, int op, u32 rw, int bytes)
|
|||
case REQ_OP_DISCARD:
|
||||
rwbs[i++] = 'D';
|
||||
break;
|
||||
case REQ_OP_SECURE_ERASE:
|
||||
rwbs[i++] = 'D';
|
||||
rwbs[i++] = 'E';
|
||||
break;
|
||||
case REQ_OP_FLUSH:
|
||||
rwbs[i++] = 'F';
|
||||
break;
|
||||
|
|
@ -1809,8 +1813,6 @@ void blk_fill_rwbs(char *rwbs, int op, u32 rw, int bytes)
|
|||
rwbs[i++] = 'S';
|
||||
if (rw & REQ_META)
|
||||
rwbs[i++] = 'M';
|
||||
if (rw & REQ_SECURE)
|
||||
rwbs[i++] = 'E';
|
||||
|
||||
rwbs[i] = '\0';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue