diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2021-02-24 21:09:29 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-24 22:38:34 +0100 |
commit | e2d26aa5fb393e930eb03628e8add7bd600a8b97 (patch) | |
tree | 9ac05f2a29194efd85d10e3b77f2357cf0e4f209 /mm/compaction.c | |
parent | mm/compaction: remove rcu_read_lock during page compaction (diff) | |
download | linux-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.c | 1 |
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 |