mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02:00
ANDROID: dm-user: remove REQ_OP_WRITE_SAME
As of commit73bd66d9c8("scsi: block: Remove REQ_OP_WRITE_SAME support"), REQ_OP_WRITE_SAME is no longer present, so remove it from the dm-user driver to fix the build as it is no longer needed. Fixes:73bd66d9c8("scsi: block: Remove REQ_OP_WRITE_SAME support") Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I6cdcea507c55d23ef090f8b96e0e90c5c1f0e09f
This commit is contained in:
parent
26539e2f09
commit
d5da625ac4
|
|
@ -313,7 +313,6 @@ static inline size_t bio_bytes_needed_to_user(struct bio *bio)
|
|||
case REQ_OP_FLUSH:
|
||||
case REQ_OP_DISCARD:
|
||||
case REQ_OP_SECURE_ERASE:
|
||||
case REQ_OP_WRITE_SAME:
|
||||
case REQ_OP_WRITE_ZEROES:
|
||||
return sizeof(struct dm_user_message);
|
||||
|
||||
|
|
@ -335,7 +334,6 @@ static inline size_t bio_bytes_needed_from_user(struct bio *bio)
|
|||
case REQ_OP_FLUSH:
|
||||
case REQ_OP_DISCARD:
|
||||
case REQ_OP_SECURE_ERASE:
|
||||
case REQ_OP_WRITE_SAME:
|
||||
case REQ_OP_WRITE_ZEROES:
|
||||
return sizeof(struct dm_user_message);
|
||||
|
||||
|
|
@ -361,8 +359,6 @@ static inline long bio_type_to_user_type(struct bio *bio)
|
|||
return DM_USER_REQ_MAP_DISCARD;
|
||||
case REQ_OP_SECURE_ERASE:
|
||||
return DM_USER_REQ_MAP_SECURE_ERASE;
|
||||
case REQ_OP_WRITE_SAME:
|
||||
return DM_USER_REQ_MAP_WRITE_SAME;
|
||||
case REQ_OP_WRITE_ZEROES:
|
||||
return DM_USER_REQ_MAP_WRITE_ZEROES;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user