Mikulas Patocka
76f5bee5c3
dm stats: initialize read-only module parameter
...
The module parameter stats_current_allocated_bytes in dm-mod is
read-only. This parameter informs the user about memory
consumption. It is not supposed to be changed by the user.
However, despite being read-only, this parameter can be set on
modprobe or insmod command line:
modprobe dm-mod stats_current_allocated_bytes=12345
The kernel doesn't expect that this variable can be non-zero at module
initialization and if the user sets it, it results in warning.
This patch initializes the variable in the module init routine, so
that user-supplied value is ignored.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com >
Signed-off-by: Mike Snitzer <snitzer@redhat.com >
Cc: stable@vger.kernel.org # 3.12+
2013-12-10 19:13:21 -05:00
..
2013-10-10 18:17:39 -07:00
2013-12-10 16:35:13 -05:00
2013-06-14 08:10:26 +10:00
2012-05-22 13:55:34 +10:00
2013-03-01 22:45:51 +00:00
2013-03-01 22:45:51 +00:00
2013-12-10 19:13:20 -05:00
2012-03-28 18:41:29 +01:00
2013-03-01 22:45:51 +00:00
2013-11-11 11:37:49 -05:00
2013-11-11 11:37:49 -05:00
2013-03-20 17:21:27 +00:00
2013-11-11 11:37:50 -05:00
2013-12-10 16:35:14 -05:00
2013-11-09 18:20:18 -05:00
2013-11-11 11:37:50 -05:00
2013-12-10 16:35:15 -05:00
2013-11-09 18:20:20 -05:00
2013-11-18 11:23:21 -05:00
2012-07-27 15:07:59 +01:00
2010-08-12 04:13:51 +01:00
2013-07-10 23:41:17 +01:00
2013-09-23 10:42:24 -04:00
2013-11-09 18:20:22 -05:00
2013-08-23 09:02:13 -04:00
2013-03-01 22:45:47 +00:00
2011-11-06 19:44:47 -08:00
2012-05-10 23:21:39 -04:00
2009-09-04 20:40:34 +01:00
2012-07-30 17:25:16 -07:00
2013-11-05 11:20:34 -05:00
2011-10-31 19:31:18 -04:00
2009-06-22 10:12:27 +01:00
2012-03-28 18:41:26 +01:00
2013-08-23 09:02:13 -04:00
2013-06-26 12:38:24 +10:00
2012-07-20 14:25:03 +01:00
2012-03-28 18:41:26 +01:00
2012-03-28 18:41:26 +01:00
2013-09-20 10:36:34 -04:00
2011-10-31 19:31:19 -04:00
2013-12-10 16:34:25 -05:00
2013-12-10 19:13:21 -05:00
2013-09-05 20:46:06 -04:00
2013-09-06 11:36:01 -04:00
2013-07-10 23:41:19 +01:00
2010-03-07 17:04:49 -08:00
2013-12-10 16:34:27 -05:00
2013-09-05 20:46:05 -04:00
2013-12-10 16:35:13 -05:00
2013-12-10 16:35:13 -05:00
2013-12-10 16:35:13 -05:00
2011-10-31 19:31:19 -04:00
2013-07-10 23:41:17 +01:00
2013-03-01 22:45:47 +00:00
2013-11-09 18:20:22 -05:00
2013-11-09 18:20:22 -05:00
2013-03-23 14:15:29 -07:00
2013-11-09 18:20:22 -05:00
2013-03-23 14:15:29 -07:00
2011-10-11 16:48:54 +11:00
2013-09-05 20:46:06 -04:00
2013-08-27 16:45:00 +10:00
2013-08-27 16:45:00 +10:00
2012-10-11 13:34:00 +11:00
2011-10-11 16:48:57 +11:00
2013-06-26 12:38:19 +10:00
2012-03-19 12:46:39 +11:00
2013-07-18 14:18:04 +10:00
2012-07-31 10:03:53 +10:00
2013-09-02 10:31:29 +10:00
2013-09-02 10:31:29 +10:00
2013-07-25 16:46:53 +10:00
2013-02-26 11:55:30 +11:00