X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Fmlock.c;h=39b3a7d4bd842d9cbedc451d9c7c4afd00f66f2a;hb=775b8c741b47590f6f472e16e41064e446bb5ecf;hp=4f4f53bdc65de30d11c637b2bc745aa1333a16bd;hpb=ff4d7fa8c32f6ec513fb792c060809ec82d53ea4;p=pandora-kernel.git diff --git a/mm/mlock.c b/mm/mlock.c index 4f4f53bdc65d..39b3a7d4bd84 100644 --- a/mm/mlock.c +++ b/mm/mlock.c @@ -78,6 +78,7 @@ void __clear_page_mlock(struct page *page) */ void mlock_vma_page(struct page *page) { + /* Serialize with page migration */ BUG_ON(!PageLocked(page)); if (!TestSetPageMlocked(page)) { @@ -105,6 +106,7 @@ void mlock_vma_page(struct page *page) */ void munlock_vma_page(struct page *page) { + /* For try_to_munlock() and to serialize with page migration */ BUG_ON(!PageLocked(page)); if (TestClearPageMlocked(page)) {