summaryrefslogtreecommitdiffstats
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2021-02-24 21:09:29 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2021-02-24 22:38:34 +0100
commite2d26aa5fb393e930eb03628e8add7bd600a8b97 (patch)
tree9ac05f2a29194efd85d10e3b77f2357cf0e4f209 /mm/compaction.c
parentmm/compaction: remove rcu_read_lock during page compaction (diff)
downloadlinux-e2d26aa5fb393e930eb03628e8add7bd600a8b97.tar.xz
linux-e2d26aa5fb393e930eb03628e8add7bd600a8b97.zip
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>
Diffstat (limited to '')
-rw-r--r--mm/compaction.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index 69ca3d6f9764..b5220f275525 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -137,7 +137,6 @@ EXPORT_SYMBOL(__SetPageMovable);
void __ClearPageMovable(struct page *page)
{
- VM_BUG_ON_PAGE(!PageLocked(page), page);
VM_BUG_ON_PAGE(!PageMovable(page), page);
/*
* Clear registered address_space val with keeping PAGE_MAPPING_MOVABLE