Mikulas Patocka
02cde50b7e
dm ioctl: optimize functions without variable params
...
Device-mapper ioctls receive and send data in a buffer supplied
by userspace. The buffer has two parts. The first part contains
a 'struct dm_ioctl' and has a fixed size. The second part depends
on the ioctl and has a variable size.
This patch recognises the specific ioctls that do not use the variable
part of the buffer and skips allocating memory for it.
In particular, when a device is suspended and a resume ioctl is sent,
this now avoid memory allocation completely.
The variable "struct dm_ioctl tmp" is moved from the function
copy_params to its caller ctl_ioctl and renamed to param_kernel.
It is used directly when the ioctl function doesn't need any arguments.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com >
Signed-off-by: Alasdair G Kergon <agk@redhat.com >
2013-03-01 22:45:49 +00:00
..
2013-02-27 16:16:39 -08:00
2013-02-24 17:32:15 -08:00
2013-02-27 19:10:24 -08:00
2013-02-26 20:16:07 -08:00
2013-02-14 14:23:33 -05:00
2013-02-28 17:43:09 -08:00
2013-02-21 17:40:58 -08:00
2013-02-27 19:10:21 -08:00
2013-02-27 19:10:24 -08:00
2013-02-26 19:43:20 -08:00
2013-02-18 14:53:08 -05:00
2013-02-25 21:25:17 -08:00
2013-02-21 15:27:22 -08:00
2013-02-25 15:56:15 -08:00
2013-02-27 19:10:15 -08:00
2013-01-29 10:48:30 +01:00
2013-02-27 19:10:15 -08:00
2013-02-21 12:05:51 -08:00
2013-02-21 13:57:13 -08:00
2013-02-27 19:10:15 -08:00
2013-02-27 16:17:42 -08:00
2013-02-27 19:10:15 -08:00
2013-02-27 19:10:24 -08:00
2013-02-26 20:16:07 -08:00
2013-02-21 13:57:13 -08:00
2013-02-20 11:26:56 -08:00
2013-02-27 19:10:20 -08:00
2013-02-26 20:16:07 -08:00
2013-02-22 19:25:09 -08:00
2013-02-21 12:11:44 -08:00
2013-02-27 19:10:24 -08:00
2013-02-24 20:00:58 -08:00
2013-02-26 20:16:07 -08:00
2013-02-21 13:57:13 -08:00
2013-02-21 14:58:40 -08:00
2013-02-27 19:10:24 -08:00
2013-02-26 09:29:02 -08:00
2013-02-26 14:49:12 -08:00
2013-02-23 17:09:55 -08:00
2013-02-02 00:01:15 +01:00
2013-03-01 22:45:49 +00:00
2013-02-26 20:16:07 -08:00
2013-02-27 19:10:23 -08:00
2013-02-27 19:10:17 -08:00
2013-02-27 19:10:24 -08:00
2013-02-27 19:10:17 -08:00
2013-02-27 19:10:23 -08:00
2013-02-27 19:10:24 -08:00
2013-02-18 13:47:13 -05:00
2013-02-21 17:40:58 -08:00
2013-02-22 23:31:38 -05:00
2013-02-26 20:16:07 -08:00
2013-02-21 17:54:03 -08:00
2013-02-27 19:10:24 -08:00
2013-02-21 17:40:58 -08:00
2013-02-21 15:38:49 -08:00
2013-02-26 20:16:07 -08:00
2013-02-26 20:16:07 -08:00
2013-02-27 19:10:18 -08:00
2013-02-27 19:10:23 -08:00
2013-02-26 09:34:29 -08:00
2013-02-19 12:43:12 +00:00
2013-02-27 19:10:18 -08:00
2013-02-27 19:10:18 -08:00
2013-02-24 20:00:58 -08:00
2013-02-26 20:16:07 -08:00
2013-02-26 20:16:07 -08:00
2013-02-28 12:43:43 -08:00
2013-01-29 08:56:25 -08:00
2013-02-21 15:27:22 -08:00
2013-02-14 14:23:33 -05:00
2013-02-27 19:10:24 -08:00
2013-02-27 19:10:24 -08:00
2013-02-27 19:10:19 -08:00
2013-02-27 09:59:50 -08:00
2013-02-27 19:10:19 -08:00
2013-02-26 20:16:07 -08:00
2013-02-06 12:18:56 -08:00
2013-02-27 19:10:19 -08:00
2013-02-26 11:42:23 -08:00
2013-02-27 19:10:09 -08:00
2013-02-26 14:49:12 -08:00
2013-02-14 09:24:14 -08:00
2013-02-27 19:10:23 -08:00
2013-02-26 20:16:07 -08:00
2013-02-26 20:16:07 -08:00
2013-02-22 23:31:31 -05:00
2013-02-21 13:57:13 -08:00
2013-02-23 17:09:55 -08:00