]> www.infradead.org Git - users/willy/xarray.git/commit
mm: vmalloc: add optimization hint on page existence check
authorMiao Wang <shankerwangmiao@gmail.com>
Tue, 13 Aug 2024 17:12:13 +0000 (01:12 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:26:08 +0000 (20:26 -0700)
commit6963f00813f49375360544fe923e62f2070601af
tree06eee27ff50a9d13db724066971d43dbe6ecf9c5
parent59149bf8cea9e3b0e6368f68ae31bf91cdec1eb4
mm: vmalloc: add optimization hint on page existence check

In commit 21e516b913c1 ("mm: vmalloc: dump page owner info if page is
already mapped"), a BUG_ON macro was changed into an if statement, where
the compiler optimization hint introduced in the BUG_ON macro was removed
along with this change.  This patch adds back the hint.

Link: https://lkml.kernel.org/r/20240814-fix_vmap_unlikely-v1-1-cd7954775f12@gmail.com
Fixes: 21e516b913c1 ("mm: vmalloc: dump page owner info if page is already mapped")
Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Hariom Panthi <hariom1.p@samsung.com>
Cc: "Uladzislau Rezki (Sony)" <urezki@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c