History

dm: prepare to support WRITE SAME

Allow targets to opt in to WRITE SAME support by setting 'num_write_same_requests' in the dm_target structure. A dm device will only advertise WRITE SAME support if all its targets and all its underlying devices support it.

Mike Snitzer committed 13 years ago

Commit d54eaa51 parent 9c5091f2 files · +34 −1Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/device-mapper.h+5−0
@@ -205,6 +205,11 @@ struct dm_target { · 204 unmodified lines
205 */205 */
206 unsigned num_discard_requests;206 unsigned num_discard_requests;
207 207
208 /*
209 * The number of WRITE SAME requests that will be submitted to the target.
210 */
211 unsigned num_write_same_requests;
212
208 /* target specific data */213 /* target specific data */
209 void *private;214 void *private;
210 215

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t