On 10.10.24 08:10, Kefeng Wang wrote:
The file_thp_enabled() only used in __thp_vma_allowable_orders(), so move it into huge_memory.c, also check READ_ONLY_THP_FOR_FS ahead to avoid unnecessary code if config disabled.
I would hope the compiler is smart enough. But this way is clearer Acked-by: David Hildenbrand <david@xxxxxxxxxx> -- Cheers, David / dhildenb