Bart Van Assche
6080758d44
dm ioctl: use offsetof() instead of open-coding it
...
Subtracting sizes is a fragile approach because the result is only
correct if the compiler has not added any padding at the end of the
structure. Hence use offsetof() instead of size subtraction. An
additional advantage of offsetof() is that it makes the intent more
clear.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2016-12-08 14:13:08 -05:00
..
2016-09-22 07:48:03 -06:00
2016-11-14 15:17:47 -05:00
2016-09-21 09:09:44 -07:00
2016-05-04 12:39:35 -07:00
2016-12-08 14:13:05 -05:00
2016-06-10 15:15:44 -04:00
2016-11-21 09:52:02 -05:00
2016-03-10 17:12:12 -05:00
2016-09-22 11:15:02 -04:00
2016-09-22 11:15:02 -04:00
2016-09-22 11:15:03 -04:00
2016-09-22 11:15:02 -04:00
2016-11-21 09:52:03 -05:00
2016-06-10 15:15:44 -04:00
2016-11-21 09:52:06 -05:00
2016-02-22 22:34:37 -05:00
2016-08-07 14:41:02 -06:00
2015-11-04 21:19:53 -08:00
2016-01-08 20:03:05 -05:00
2016-11-21 09:52:07 -05:00
2016-11-21 09:51:57 -05:00
2016-12-08 14:13:08 -05:00
2016-06-10 15:15:44 -04:00
2016-07-28 17:38:16 -07:00
2015-10-31 19:06:00 -04:00
2016-10-07 14:42:05 -07:00
2016-08-24 21:55:05 -04:00
2016-11-21 09:52:10 -05:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:42 -05:00
2016-10-14 11:55:17 -04:00
2016-11-21 09:52:05 -05:00
2016-08-07 14:41:02 -06:00
2016-08-15 09:23:14 -04:00
2016-12-08 14:13:07 -05:00
2016-09-15 11:16:05 -04:00
2016-02-22 22:34:42 -05:00
2016-06-07 13:41:38 -06:00
2016-01-08 20:03:05 -05:00
2016-08-07 14:41:02 -06:00
2016-06-10 15:15:44 -04:00
2016-08-07 14:41:02 -06:00
2015-10-31 19:06:06 -04:00
2016-06-10 15:15:44 -04:00
2016-12-08 14:13:03 -05:00
2016-07-28 17:38:16 -07:00
2016-07-20 12:43:35 -04:00
2016-07-20 12:43:35 -04:00
2016-08-07 14:41:02 -06:00
2016-07-01 23:29:08 -04:00
2015-12-10 10:39:03 -05:00
2016-11-21 09:52:01 -05:00
2015-12-10 10:39:03 -05:00
2016-08-07 14:41:02 -06:00
2016-12-08 14:13:06 -05:00
2016-07-20 23:49:49 -04:00
2016-01-20 13:52:20 -08:00
2016-11-14 15:17:47 -05:00
2016-08-07 14:41:02 -06:00
2016-06-10 15:15:44 -04:00
2016-09-21 09:09:44 -07:00
2016-05-09 09:24:03 -07:00
2016-10-28 22:04:05 -07:00
2016-09-21 09:09:44 -07:00
2016-08-07 14:41:02 -06:00
2016-08-07 14:41:02 -06:00
2016-10-28 22:04:04 -07:00
2015-10-12 01:32:05 -05:00
2016-10-28 22:04:03 -07:00
2016-10-07 09:45:43 -07:00
2016-09-06 18:30:23 +02:00
2016-10-24 15:28:17 -07:00
2016-07-19 15:20:28 -07:00