Revert "BACKPORT: futex: Fix requirement for lock_page() in get_futex_key()"

This reverts commit fc911bf76ac209366cf8f1ef702b5175290ce466.
This commit is contained in:
syphyr 2018-07-04 19:21:12 +02:00
parent c2fcfecf50
commit 8e0357da31
1 changed files with 2 additions and 2 deletions

View File

@ -358,8 +358,8 @@ again:
* applies. If this is really a shmem page then the page lock
* will prevent unexpected transitions.
*/
lock_page(page_head);
shmem_swizzled = PageSwapCache(page_head) || page_head->mapping;
lock_page(page);
shmem_swizzled = PageSwapCache(page) || page->mapping;
unlock_page(page_head);
put_page(page_head);