|
@@ -288,7 +288,7 @@ again:
|
|
|
put_page(page);
|
|
|
/* serialize against __split_huge_page_splitting() */
|
|
|
local_irq_disable();
|
|
|
- if (likely(__get_user_pages_fast(address, 1, 1, &page) == 1)) {
|
|
|
+ if (likely(__get_user_pages_fast(address, 1, !ro, &page) == 1)) {
|
|
|
page_head = compound_head(page);
|
|
|
/*
|
|
|
* page_head is valid pointer but we must pin
|