Zhen Lei
4a2f094601
mm: Remove kmem_valid_obj()
...
commit 6e284c55fc0bef7d25fd34d29db11f483da60ea4 upstream.
Function kmem_dump_obj() will splat if passed a pointer to a non-slab
object. So nothing calls it directly, instead calling kmem_valid_obj()
first to determine whether the passed pointer to a valid slab object. This
means that merging kmem_valid_obj() into kmem_dump_obj() will make the
code more concise. Therefore, convert kmem_dump_obj() to work the same
way as vmalloc_dump_obj(), removing the need for the kmem_dump_obj()
caller to check kmem_valid_obj(). After this, there are no remaining
calls to kmem_valid_obj() anymore, and it can be safely removed.
Suggested-by: Matthew Wilcox <willy@infradead.org >
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com >
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Acked-by: Vlastimil Babka <vbabka@suse.cz >
Signed-off-by: Paul E. McKenney <paulmck@kernel.org >
Signed-off-by: Frederic Weisbecker <frederic@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-08-29 17:33:23 +02:00
..
2024-07-18 13:21:24 +02:00
2024-04-03 15:28:20 +02:00
2023-09-08 12:16:52 -07:00
2024-06-16 13:47:41 +02:00
2024-02-23 09:25:16 +01:00
2023-03-28 16:20:06 -07:00
2024-06-16 13:47:42 +02:00
2024-05-02 16:32:41 +02:00
2023-06-09 16:25:23 -07:00
2024-08-19 06:04:31 +02:00
2023-06-09 16:25:31 -07:00
2023-04-05 19:42:38 -07:00
2023-06-09 16:25:17 -07:00
2023-06-09 16:25:56 -07:00
2023-06-23 16:59:31 -07:00
2023-06-09 16:25:23 -07:00
2024-07-25 09:50:56 +02:00
2023-07-24 18:04:30 -04:00
2023-06-23 16:58:19 -07:00
2024-08-19 06:04:24 +02:00
2023-06-19 16:19:25 -07:00
2023-08-21 13:07:20 -07:00
2024-08-19 06:04:24 +02:00
2023-02-13 15:54:27 -08:00
2023-08-18 10:12:14 -07:00
2024-08-19 06:04:24 +02:00
2023-08-21 13:37:46 -07:00
2024-08-19 06:04:24 +02:00
2023-08-18 10:12:36 -07:00
2024-08-11 12:47:16 +02:00
2023-05-29 16:14:28 +01:00
2023-08-29 14:25:26 -07:00
2023-09-02 15:17:34 -07:00
2024-06-16 13:47:41 +02:00
2023-04-12 17:36:23 -07:00
2024-05-02 16:32:40 +02:00
2023-08-29 14:25:26 -07:00
2023-08-24 16:20:30 -07:00
2024-03-01 13:35:06 +01:00
2024-08-29 17:33:16 +02:00
2023-09-05 11:11:52 -07:00
2024-01-20 11:51:49 +01:00
2024-08-29 17:33:15 +02:00
2023-08-18 10:12:38 -07:00
2024-08-03 08:54:24 +02:00
2024-08-03 08:54:25 +02:00
2023-02-09 16:51:46 -08:00
2024-04-03 15:28:33 +02:00
2023-08-31 12:20:12 -07:00
2024-03-15 10:48:14 -04:00
2023-08-21 13:07:20 -07:00
2023-08-21 14:26:20 -07:00
2024-01-31 16:18:56 -08:00
2024-08-03 08:54:12 +02:00
2024-04-03 15:28:40 +02:00
2023-08-24 16:20:30 -07:00
2023-08-18 10:12:41 -07:00
2023-08-31 12:20:12 -07:00
2023-09-16 15:23:31 -07:00
2023-08-31 12:20:12 -07:00
2023-08-21 13:37:44 -07:00
2024-08-11 12:47:16 +02:00
2023-08-18 10:12:31 -07:00
2023-08-21 13:37:27 -07:00
2023-08-18 10:12:39 -07:00
2023-08-21 13:37:27 -07:00
2023-08-21 13:37:30 -07:00
2024-05-02 16:32:41 +02:00
2024-08-19 06:04:29 +02:00
2023-08-18 10:12:13 -07:00
2024-07-11 12:49:16 +02:00
2023-09-02 08:39:21 -07:00
2023-06-19 16:19:29 -07:00
2024-02-16 19:10:52 +01:00
2024-06-16 13:47:40 +02:00
2023-06-09 16:25:25 -07:00
2023-06-19 16:19:24 -07:00
2024-05-17 12:02:36 +02:00
2023-09-29 17:20:47 -07:00
2023-08-21 13:38:02 -07:00
2024-04-03 15:28:54 +02:00
2024-07-18 13:21:24 +02:00
2024-05-02 16:32:41 +02:00
2023-06-19 13:19:34 -07:00
2023-04-05 19:42:46 -07:00
2024-08-29 17:33:23 +02:00
2023-07-18 10:07:47 +02:00
2023-07-18 10:07:47 +02:00
2023-07-14 09:57:21 +02:00
2023-08-18 10:12:53 -07:00
2024-01-31 16:18:56 -08:00
2023-08-24 16:20:28 -07:00
2023-06-23 16:59:30 -07:00
2024-03-01 13:35:00 +01:00
2024-04-03 15:28:27 +02:00
2023-08-29 14:25:26 -07:00
2023-04-12 17:36:23 -07:00
2024-06-12 11:11:33 +02:00
2024-08-29 17:33:23 +02:00
2024-07-18 13:21:20 +02:00
2023-08-16 12:21:32 +01:00
2024-08-03 08:54:33 +02:00
2024-05-02 16:32:41 +02:00
2024-06-16 13:47:31 +02:00
2023-08-21 13:37:51 -07:00
2023-06-19 16:19:27 -07:00
2023-06-19 16:19:27 -07:00
2023-08-21 14:26:20 -07:00
2024-03-01 13:35:10 +01:00