Re: [PATCH 2/2] devtmpfs: actually reclaim some init memory

2021-03-12 Thread Christoph Hellwig
On Fri, Mar 12, 2021 at 11:30:27AM +0100, Rasmus Villemoes wrote: > Currently gcc seems to inline devtmpfs_setup() into devtmpfsd(), so > its memory footprint isn't reclaimed as intended. Mark it noinline to > make sure it gets put in .init.text. > > While here, setup_done can also be put in .init

[PATCH 2/2] devtmpfs: actually reclaim some init memory

2021-03-12 Thread Rasmus Villemoes
Currently gcc seems to inline devtmpfs_setup() into devtmpfsd(), so its memory footprint isn't reclaimed as intended. Mark it noinline to make sure it gets put in .init.text. While here, setup_done can also be put in .init.data: After complete() releases the internal spinlock, the completion objec