Files
kernel_xiaomi_raphael/include/linux
Pengfei Li ca40a465a0 mm/vmalloc: modify struct vmap_area to reduce its size
Objective
---------

The current implementation of struct vmap_area wasted space.

After applying this commit, sizeof(struct vmap_area) has been
reduced from 11 words to 8 words.

Description
-----------

1) Pack "subtree_max_size", "vm" and "purge_list".  This is no problem
   because

A) "subtree_max_size" is only used when vmap_area is in "free" tree

B) "vm" is only used when vmap_area is in "busy" tree

C) "purge_list" is only used when vmap_area is in vmap_purge_list

2) Eliminate "flags".

;Since only one flag VM_VM_AREA is being used, and the same thing can be
done by judging whether "vm" is NULL, then the "flags" can be eliminated.

Link: http://lkml.kernel.org/r/20190716152656.12255-3-lpf.vector@gmail.com
Signed-off-by: Pengfei Li <lpf.vector@gmail.com>
Suggested-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Cc: Hillf Danton <hdanton@sina.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Oleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>
Cc: Roman Gushchin <guro@fb.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: UtsavisGreat <utsavbalar1231@gmail.com>
2020-05-26 12:13:57 +05:30
..
2020-05-25 21:20:43 +05:30
2018-04-24 11:32:25 -07:00
2018-10-04 16:15:25 -07:00
2020-05-26 12:13:52 +05:30
2019-11-05 05:46:34 -08:00
2018-02-22 15:42:23 +01:00
2019-08-09 18:08:06 +02:00
2018-09-26 08:43:22 +02:00
2019-06-25 02:20:14 -07:00
2020-04-20 13:29:37 +05:30
2019-11-27 15:27:44 +05:30
2018-04-13 10:18:03 -07:00
2020-05-26 12:11:38 +05:30
2019-12-05 15:38:28 +01:00
2018-08-06 09:47:26 -07:00
2019-01-28 10:11:34 +02:00
2019-12-17 21:13:36 +01:00
2020-05-25 21:20:42 +05:30
2020-05-25 21:20:36 +05:30
2020-05-26 12:13:40 +05:30
2020-05-26 12:13:44 +05:30
2019-12-31 12:37:21 +01:00
2020-05-26 12:13:42 +05:30
2019-06-09 09:40:33 +02:00
2018-02-16 16:15:51 -08:00
2018-02-22 15:42:23 +01:00
2019-11-14 14:38:28 +08:00
2018-10-30 11:01:12 -07:00
2020-03-04 16:12:09 -05:00
2019-08-12 13:29:46 -04:00
2018-05-22 11:24:18 +05:30
2018-02-22 19:18:40 +00:00
2019-03-23 00:52:29 +00:00
2019-06-11 12:21:48 +02:00
2018-03-08 14:36:36 -08:00
2018-04-26 11:37:46 +02:00
2019-08-12 13:29:46 -04:00
2018-11-13 11:15:11 -08:00
2019-06-17 19:52:43 +02:00
2020-02-13 14:17:03 +05:30