Re: [PATCH] mm: filemap: remove include of hardirq.h

From: Matthew Wilcox
Date: Sat Nov 04 2017 - 09:47:17 EST


On Sat, Nov 04, 2017 at 02:47:48AM +0800, Yang Shi wrote:
> in_atomic() has been moved to include/linux/preempt.h, and the filemap.c
> doesn't use in_atomic() directly at all, so it sounds unnecessary to
> include hardirq.h.
> With removing hardirq.h, around 32 bytes can be saved for x86_64 bzImage
> with allnoconfig.

Wait, what? How would including an unused header file increase the size
of the final image?