Vlastimil Babka
fa9b88e459
mm, slub: refactor free debug processing
...
Since commit c7323a5ad0 ("mm/slub: restrict sysfs validation to debug
caches and make it safe"), caches with debugging enabled use the
free_debug_processing() function to do both freeing checks and actual
freeing to partial list under list_lock, bypassing the fast paths.
We will want to use the same path for CONFIG_SLUB_TINY, but without the
debugging checks, so refactor the code so that free_debug_processing()
does only the checks, while the freeing is handled by a new function
free_to_partial_list().
For consistency, change return parameter alloc_debug_processing() from
int to bool and correct the !SLUB_DEBUG variant to return true and not
false. This didn't matter until now, but will in the following changes.
Signed-off-by: Vlastimil Babka <vbabka@suse.cz >
Acked-by: Mike Rapoport <rppt@linux.ibm.com >
Reviewed-by: Christoph Lameter <cl@linux.com >
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com >
2022-11-27 23:43:53 +01:00
..
2022-10-14 12:28:43 -07:00
2022-10-16 15:27:07 -07:00
2022-10-10 17:53:04 -07:00
2022-10-03 14:03:26 -07:00
2022-09-11 20:26:02 -07:00
2022-08-02 12:34:03 -04:00
2022-08-28 14:02:45 -07:00
2022-09-11 20:25:50 -07:00
2021-05-05 11:27:24 -07:00
2022-05-13 15:11:26 -07:00
2022-03-22 15:57:09 -07:00
2022-10-14 12:28:43 -07:00
2022-06-27 12:52:53 -07:00
2022-09-26 19:46:26 -07:00
2022-01-15 16:30:28 +02:00
2022-03-22 15:57:11 -07:00
2022-04-26 13:36:25 -07:00
2022-05-19 14:08:55 -07:00
2022-10-10 17:53:04 -07:00
2022-10-03 14:02:53 -07:00
2022-09-26 12:14:34 -07:00
2022-07-17 17:14:27 -07:00
2021-05-05 11:27:26 -07:00
2022-10-12 11:16:58 -07:00
2022-10-12 18:51:51 -07:00
2022-09-26 19:46:05 -07:00
2022-10-20 21:27:24 -07:00
2022-09-11 20:25:53 -07:00
2022-09-11 20:25:58 -07:00
2022-08-08 18:06:43 -07:00
2022-10-20 21:27:23 -07:00
2022-10-03 14:03:05 -07:00
2022-09-26 19:46:16 -07:00
2022-10-03 14:03:30 -07:00
2021-04-30 11:20:38 -07:00
2021-04-30 11:20:39 -07:00
2022-06-27 12:22:31 +01:00
2022-11-27 23:38:02 +01:00
2022-11-27 23:38:02 +01:00
2022-10-10 17:53:04 -07:00
2022-09-11 20:26:10 -07:00
2022-10-03 14:02:53 -07:00
2022-06-16 19:48:31 -07:00
2022-03-23 18:03:08 -07:00
2022-10-03 14:02:52 -07:00
2022-10-03 14:03:36 -07:00
2022-01-15 16:30:27 +02:00
2022-10-03 14:03:04 -07:00
2022-10-10 17:53:04 -07:00
2022-03-05 11:08:32 -08:00
2022-10-03 14:03:04 -07:00
2022-10-03 14:02:54 -07:00
2022-09-26 19:46:13 -07:00
2022-10-12 18:51:50 -07:00
2022-10-20 21:27:21 -07:00
2022-06-16 19:48:30 -07:00
2022-10-12 18:51:49 -07:00
2022-10-12 18:51:49 -07:00
2022-10-12 18:51:49 -07:00
2022-05-13 07:20:09 -07:00
2022-09-26 19:46:27 -07:00
2022-09-26 19:46:09 -07:00
2022-10-03 14:02:43 -07:00
2021-07-23 17:43:28 -07:00
2022-10-20 21:27:23 -07:00
2022-10-12 18:51:48 -07:00
2022-04-21 20:01:10 -07:00
2022-09-26 19:46:09 -07:00
2022-10-12 15:56:46 -07:00
2022-09-26 19:46:28 -07:00
2022-09-26 19:46:25 -07:00
2022-09-26 19:46:26 -07:00
2022-09-26 19:46:29 -07:00
2022-10-20 21:27:23 -07:00
2022-09-11 20:26:01 -07:00
2022-09-11 20:26:02 -07:00
2022-05-19 14:08:54 -07:00
2022-10-03 14:02:52 -07:00
2022-10-03 14:03:04 -07:00
2022-10-03 14:03:03 -07:00
2021-04-30 11:20:36 -07:00
2021-06-29 10:53:47 -07:00
2021-06-29 10:53:47 -07:00
2022-10-03 14:03:27 -07:00
2022-09-26 19:46:05 -07:00
2022-09-26 12:28:07 +02:00
2022-10-10 17:53:04 -07:00
2022-05-13 07:20:18 -07:00
2021-07-04 18:30:17 +00:00
2022-03-08 09:30:46 -05:00
2021-07-04 18:30:17 +00:00
2022-07-17 17:14:47 -07:00
2021-05-07 00:26:35 -07:00
2022-05-13 07:20:05 -07:00
2021-05-05 11:27:27 -07:00
2022-09-03 10:13:13 -07:00
2022-09-20 08:24:38 -06:00
2022-10-10 17:53:04 -07:00
2022-10-03 14:03:05 -07:00
2022-10-03 14:03:36 -07:00
2022-10-11 17:42:58 -06:00
2022-07-29 18:07:13 -07:00
2022-10-03 14:03:07 -07:00
2021-05-22 15:09:07 -10:00
2022-11-27 23:39:02 +01:00
2022-10-16 15:27:07 -07:00
2022-11-27 23:35:04 +01:00
2022-09-29 11:30:55 +02:00
2022-11-27 23:43:53 +01:00
2022-08-08 18:06:42 -07:00
2022-07-03 18:08:49 -07:00
2022-10-03 14:03:36 -07:00
2022-10-03 14:02:46 -07:00
2022-10-03 14:02:51 -07:00
2022-10-03 14:02:45 -07:00
2022-10-03 14:02:51 -07:00
2022-10-10 17:53:04 -07:00
2022-10-03 14:02:45 -07:00
2022-07-01 17:03:38 -07:00
2022-10-03 14:03:17 -07:00
2022-10-10 17:53:04 -07:00
2022-10-03 14:03:20 -07:00
2021-11-06 13:30:40 -07:00
2022-10-07 14:28:40 -07:00
2022-10-10 17:53:04 -07:00
2022-09-26 19:46:09 -07:00
2022-08-02 12:34:03 -04:00
2021-07-01 11:06:03 -07:00
2022-01-15 16:30:31 +02:00
2022-10-20 21:27:21 -07:00
2022-09-11 20:25:50 -07:00