Re: [PATCH v2] mm/compaction: remove unused variable sysctl_compact_memory

2021-03-04 Thread Vlastimil Babka
On 3/4/21 11:03 AM, Pintu Kumar wrote: > The sysctl_compact_memory is mostly unused in mm/compaction.c > It just acts as a place holder for sysctl to store .data. > > But the .data itself is not needed here. > So we can get ride of this variable completely and make .data as NULL. > This will also

[PATCH v2] mm/compaction: remove unused variable sysctl_compact_memory

2021-03-04 Thread Pintu Kumar
The sysctl_compact_memory is mostly unused in mm/compaction.c It just acts as a place holder for sysctl to store .data. But the .data itself is not needed here. So we can get ride of this variable completely and make .data as NULL. This will also eliminate the extern declaration from header file.