projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shmem: fix faulting into a hole while it's punched
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
mm
/
mlock.c
diff --git
a/mm/mlock.c
b/mm/mlock.c
index
4e1a681
..
b1eb536
100644
(file)
--- a/
mm/mlock.c
+++ b/
mm/mlock.c
@@
-79,6
+79,7
@@
void clear_page_mlock(struct page *page)
*/
void mlock_vma_page(struct page *page)
{
*/
void mlock_vma_page(struct page *page)
{
+ /* Serialize with page migration */
BUG_ON(!PageLocked(page));
if (!TestSetPageMlocked(page)) {
BUG_ON(!PageLocked(page));
if (!TestSetPageMlocked(page)) {
@@
-174,6
+175,7
@@
unsigned int munlock_vma_page(struct page *page)
unsigned int nr_pages;
struct zone *zone = page_zone(page);
unsigned int nr_pages;
struct zone *zone = page_zone(page);
+ /* For try_to_munlock() and to serialize with page migration */
BUG_ON(!PageLocked(page));
/*
BUG_ON(!PageLocked(page));
/*