mm/compaction: remove duplicated VM_BUG_ON_PAGE !PageLocked
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 24 Feb 2021 20:09:29 +0000 (12:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:34 +0000 (13:38 -0800)
commite2d26aa5fb393e930eb03628e8add7bd600a8b97
tree9ac05f2a29194efd85d10e3b77f2357cf0e4f209
parentd99fd5feb0ac1d56c36c760a8d922a46bd6c5521
mm/compaction: remove duplicated VM_BUG_ON_PAGE !PageLocked

The VM_BUG_ON_PAGE(!PageLocked(page), page) is also done in PageMovable.
Remove this explicitly one.

Link: https://lkml.kernel.org/r/20210109081420.46030-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/compaction.c