mm: thp: Fix condition check for THP creation 71/270671/3
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 7 Feb 2022 07:32:16 +0000 (08:32 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 8 Feb 2022 07:22:29 +0000 (07:22 +0000)
commitd39987b460c30e406178e9510e265021752df2f5
treeda8b4caf0ee726a02f3d6795edbeb0e8233e7e79
parent9253e0f9c2a812f54dbe28bd9fd7522cb09f6140
mm: thp: Fix condition check for THP creation

The 'hend' is already THP-aligned, so the proper check should be
exclusive. This fixes forcing 64kB THP pages for the last 2MB of each
process memory area.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I0b2187f1e045bc61207122f0162fdb145214ddad
mm/khugepaged.c